diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-09-07 16:42:03 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-09-07 16:42:03 +0200 |
| commit | b8e182138afddfe6a1d20a0aa5d543eca99058df (patch) | |
| tree | 0051db11d3da9d4cdbdf9bbd136fa37695a6ebda /scripts/image-build/defaults.py | |
| parent | cf80f5db24dc37ef74e47dd7cc463035bbafe63a (diff) | |
| download | vyos-build-b8e182138afddfe6a1d20a0aa5d543eca99058df.tar.gz vyos-build-b8e182138afddfe6a1d20a0aa5d543eca99058df.zip | |
T9014: install flavor.json before Debian packages are installed
The vyos-1x-smoketest maintainer script now queries the image flavor to implant
the correct serial console device and speed into the configuration test data.
This requires /usr/share/vyos/flavor.json to be present in the chroot before
the Debian packages get installed, but config/includes.chroot is only copied
into the chroot after package installation.
Write flavor.json to config/includes.chroot_before_packages instead, which
live-build copies into the chroot prior to installing packages. version.json
and the activation hints are unaffected and remain in config/includes.chroot.
Companion change to vyos-1x commit 2f9fe3e74 ("smoketest: T9014: make
configtest serial console image flavor agnostic").
Diffstat (limited to 'scripts/image-build/defaults.py')
| -rw-r--r-- | scripts/image-build/defaults.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/image-build/defaults.py b/scripts/image-build/defaults.py index 29a6d59f..be417ca1 100644 --- a/scripts/image-build/defaults.py +++ b/scripts/image-build/defaults.py @@ -62,6 +62,9 @@ PBUILDER_DIR = 'pbuilder' LB_CONFIG_DIR = 'config' CHROOT_INCLUDES_DIR = 'config/includes.chroot' +# Files that must already be present while the Debian packages are installed, +# live-build copies this directory into the chroot before package installation +CHROOT_INCLUDES_EARLY_DIR = 'config/includes.chroot_before_packages' BINARY_INCLUDES_DIR = 'config/includes.binary' ARCHIVES_DIR = 'config/archives/' |
