mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Merge pull request #850 from dmbaturin/T6922-bootloaders-option
build: T6922: add an option to specify bootloaders for the image
This commit is contained in:
commit
5833ce11c8
@ -194,7 +194,8 @@ if __name__ == "__main__":
|
||||
'build-type': ('Build type, release or development', lambda x: x in ['release', 'development']),
|
||||
'version': ('Version string', None),
|
||||
'build-comment': ('Optional build comment', None),
|
||||
'build-hook-opts': ('Custom options for the post-build hook', None)
|
||||
'build-hook-opts': ('Custom options for the post-build hook', None),
|
||||
'bootloaders': ('Bootloaders to include in the image', None)
|
||||
}
|
||||
|
||||
# Create the option parser
|
||||
@ -319,6 +320,10 @@ if __name__ == "__main__":
|
||||
print("E: image format is not specified in the build flavor file")
|
||||
sys.exit(1)
|
||||
|
||||
## Override bootloaders if specified
|
||||
if args['bootloaders'] is not None:
|
||||
build_config['bootloaders'] = args['bootloaders']
|
||||
|
||||
## Add default boot settings if needed
|
||||
if "boot_settings" not in build_config:
|
||||
build_config["boot_settings"] = defaults.boot_settings
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user