diff options
author | Daniil Baturin <daniil@baturin.org> | 2024-11-29 17:01:35 +0000 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2024-11-29 17:04:35 +0000 |
commit | c3f79825c92586c6a14709722591a9099463b8af (patch) | |
tree | 12ec2107cb0a593b044fb3ff4cb4f62ed373364b /scripts | |
parent | c62fef71fc89136d15cba695d2cbab8929892482 (diff) | |
download | vyos-build-c3f79825c92586c6a14709722591a9099463b8af.tar.gz vyos-build-c3f79825c92586c6a14709722591a9099463b8af.zip |
build: T6922: add an option to specify bootloaders for the image
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/image-build/build-vyos-image | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/image-build/build-vyos-image b/scripts/image-build/build-vyos-image index dfa5dfbe..7da06fe7 100755 --- a/scripts/image-build/build-vyos-image +++ b/scripts/image-build/build-vyos-image @@ -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 |