From f31701f1b48b696ed4176b8ae413aa956ff15c5c Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 3 Nov 2023 17:14:58 +0000 Subject: build script: T5711: copy version.json to the ISO image in addition to the SquashFS image --- scripts/build-vyos-image | 3 +++ scripts/vyos_build_defaults.py | 1 + 2 files changed, 4 insertions(+) (limited to 'scripts') diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image index afeed480..94ce417d 100755 --- a/scripts/build-vyos-image +++ b/scripts/build-vyos-image @@ -332,10 +332,13 @@ if __name__ == "__main__": """ chroot_includes_dir = os.path.join(defaults.BUILD_DIR, defaults.CHROOT_INCLUDES_DIR) + binary_includes_dir = os.path.join(defaults.BUILD_DIR, defaults.BINARY_INCLUDES_DIR) vyos_data_dir = os.path.join(chroot_includes_dir, "usr/share/vyos") os.makedirs(vyos_data_dir, exist_ok=True) with open(os.path.join(vyos_data_dir, 'version.json'), 'w') as f: json.dump(version_data, f) + with open(os.path.join(binary_includes_dir, 'version.json'), 'w') as f: + json.dump(version_data, f) # For backwards compatibility with 'add system image' script from older versions # we need a file in the old format so that script can find out the version of the image diff --git a/scripts/vyos_build_defaults.py b/scripts/vyos_build_defaults.py index 975fcb71..1e153f4b 100644 --- a/scripts/vyos_build_defaults.py +++ b/scripts/vyos_build_defaults.py @@ -37,6 +37,7 @@ PBUILDER_DIR = 'pbuilder' LB_CONFIG_DIR = 'config' CHROOT_INCLUDES_DIR = 'config/includes.chroot' +BINARY_INCLUDES_DIR = 'config/includes.binary' ARCHIVES_DIR = 'config/archives/' VYOS_REPO_FILE = 'config/archives/vyos.list.chroot' -- cgit v1.2.3