summaryrefslogtreecommitdiff
path: root/scripts/build-vyos-image
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-04 08:22:51 +0100
committerGitHub <noreply@github.com>2023-11-04 08:22:51 +0100
commit74b06c308bb6316704d58a5a4386c8dda3c363f2 (patch)
treed54a02aea8be9d06647dc75489524c4de6701299 /scripts/build-vyos-image
parent12479ef8599c815dbb2b07cc5b4327395764d21c (diff)
parentf31701f1b48b696ed4176b8ae413aa956ff15c5c (diff)
downloadvyos-build-74b06c308bb6316704d58a5a4386c8dda3c363f2.tar.gz
vyos-build-74b06c308bb6316704d58a5a4386c8dda3c363f2.zip
Merge pull request #452 from dmbaturin/iso-version-json
build script: T5711: copy version.json to the ISO image in addition to the SquashFS image
Diffstat (limited to 'scripts/build-vyos-image')
-rwxr-xr-xscripts/build-vyos-image3
1 files changed, 3 insertions, 0 deletions
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