Skip to content

Commit a3b7ace

Browse files
committed
build: T9140: include version and flavor information in the boot menu
1 parent e8fd5d2 commit a3b7ace

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

scripts/image-build/build-vyos-image

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,21 @@ DOCUMENTATION_URL="{build_config['documentation_url']}"
494494
with open(os.path.join(binary_includes_dir, 'version.json'), 'w') as f:
495495
json.dump(version_data, f)
496496

497+
# Generate the isolinux boot menu file
498+
boot_menu_data = f'''
499+
menu hshift 0
500+
menu width 82
501+
502+
menu title VyOS {build_config['version']} ({build_config['build_flavor']})
503+
include stdmenu.cfg
504+
include live.cfg
505+
506+
menu clear
507+
'''
508+
509+
with open(os.path.join(defaults.LB_CONFIG_DIR, "includes.binary/isolinux/menu.cfg"), "w") as f:
510+
f.write(boot_menu_data)
511+
497512
# For initialization of activation scripts, we need to know if we
498513
# are building with create_raw_image
499514
if build_config["image_format"] != ["iso"]:

0 commit comments

Comments
 (0)