mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
build script: T5711: copy version.json to the ISO image
in addition to the SquashFS image
This commit is contained in:
parent
12479ef859
commit
f31701f1b4
@ -332,10 +332,13 @@ if __name__ == "__main__":
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
chroot_includes_dir = os.path.join(defaults.BUILD_DIR, defaults.CHROOT_INCLUDES_DIR)
|
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")
|
vyos_data_dir = os.path.join(chroot_includes_dir, "usr/share/vyos")
|
||||||
os.makedirs(vyos_data_dir, exist_ok=True)
|
os.makedirs(vyos_data_dir, exist_ok=True)
|
||||||
with open(os.path.join(vyos_data_dir, 'version.json'), 'w') as f:
|
with open(os.path.join(vyos_data_dir, 'version.json'), 'w') as f:
|
||||||
json.dump(version_data, 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
|
# 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
|
# we need a file in the old format so that script can find out the version of the image
|
||||||
|
|||||||
@ -37,6 +37,7 @@ PBUILDER_DIR = 'pbuilder'
|
|||||||
LB_CONFIG_DIR = 'config'
|
LB_CONFIG_DIR = 'config'
|
||||||
|
|
||||||
CHROOT_INCLUDES_DIR = 'config/includes.chroot'
|
CHROOT_INCLUDES_DIR = 'config/includes.chroot'
|
||||||
|
BINARY_INCLUDES_DIR = 'config/includes.binary'
|
||||||
ARCHIVES_DIR = 'config/archives/'
|
ARCHIVES_DIR = 'config/archives/'
|
||||||
|
|
||||||
VYOS_REPO_FILE = 'config/archives/vyos.list.chroot'
|
VYOS_REPO_FILE = 'config/archives/vyos.list.chroot'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user