summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-16 21:50:16 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-16 21:50:16 +0200
commit5d1499e61a58a313eaaf685d083e442bbd962ca2 (patch)
tree08d4fa320cda0954ab19fbaba1b3f53d89358b43
parent466d4d9f332e20b2e2b29d9e52170554f3d13b8c (diff)
downloadvyos-build-5d1499e61a58a313eaaf685d083e442bbd962ca2.tar.gz
vyos-build-5d1499e61a58a313eaaf685d083e442bbd962ca2.zip
T2305: include release train in "show version" output
-rw-r--r--data/defaults.json1
-rwxr-xr-xscripts/build-config1
-rwxr-xr-xscripts/live-build-config3
-rwxr-xr-xscripts/make-version-file3
4 files changed, 6 insertions, 2 deletions
diff --git a/data/defaults.json b/data/defaults.json
index f8ded0d0..d405f37b 100644
--- a/data/defaults.json
+++ b/data/defaults.json
@@ -7,6 +7,7 @@
"vyos_branch": "crux",
"kernel_version": "4.19.106",
"kernel_flavor": "amd64-vyos",
+ "release_train": "crux",
"additional_repositories": [
"deb http://repo.saltstack.com/apt/debian/8/amd64/2017.7 jessie main",
"deb http://archive.debian.org/debian/ jessie-backports main"
diff --git a/scripts/build-config b/scripts/build-config
index 617166c3..9368b962 100755
--- a/scripts/build-config
+++ b/scripts/build-config
@@ -124,6 +124,7 @@ args['distribution'] = build_defaults["debian_distribution"]
args['build_dir'] = os.path.join(os.getcwd(), defaults.BUILD_DIR)
args['pbuilder_config'] = defaults.PBUILDER_CONFIG
args['vyos_branch'] = build_defaults["vyos_branch"]
+args['release_train'] = build_defaults["release_train"]
# Add custom packages from build defaults
if not args['custom_package']:
diff --git a/scripts/live-build-config b/scripts/live-build-config
index 1b3b4541..4fedfeb1 100755
--- a/scripts/live-build-config
+++ b/scripts/live-build-config
@@ -57,7 +57,8 @@ lb config noauto \
--firmware-binary false \
--updates false \
--security true \
- --apt-options "--yes -oAcquire::Check-Valid-Until=false" \
+ --apt-options "--yes -oAcquire::Check-Valid-Until=false -oDebug::BuildDeps=true -oDebug::pkgDepCache::AutoInstall=true \
+ -oDebug::pkgDepCache::Marker=true -oDebug::pkgProblemResolver=true -oDebug::Acquire::gpgv=true" \
--apt-indices false
"${@}"
"""
diff --git a/scripts/make-version-file b/scripts/make-version-file
index 4df2cb6c..48e1740f 100755
--- a/scripts/make-version-file
+++ b/scripts/make-version-file
@@ -77,7 +77,8 @@ version_data = {
'built_by': build_config['build_by'],
'built_on': build_date,
'build_uuid': build_uuid,
- 'build_git': build_git
+ 'build_git': build_git,
+ 'release_train': build_config['release_train']
}
os.makedirs(os.path.join(defaults.CHROOT_INCLUDES_DIR, 'usr/share/vyos'), exist_ok=True)