summaryrefslogtreecommitdiff
path: root/functions/configuration.sh
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-05-03 18:02:04 +0100
committerLyndon Brown <jnqnfe@gmail.com>2020-05-03 23:20:39 +0100
commit9bc35759aab95d849cba38bcb6fd1bb072df9907 (patch)
tree80788a2ca43cc983d805d2473c9b6dcb5625f1fe /functions/configuration.sh
parent26a89a45e5c5311cfd43c3a3e37e18686462e402 (diff)
downloadvyos-live-build-9bc35759aab95d849cba38bcb6fd1bb072df9907.tar.gz
vyos-live-build-9bc35759aab95d849cba38bcb6fd1bb072df9907.zip
config: fix stale live-build version in iso-preparer
using `$VERSION` as part of the default `$LB_ISO_PREPARER` means that when you simply run `lb config` once, this variable is stored as a part of the string, and replaced on use, but if you run `lb config` twice, it gets replaced with a fixed version, that is then used in all subsequent builds. let's replace with a placeholder (`@LB_VERSION@`) that can be used both in the default, or in user strings, and will be replaced on use only. this means that subsequent builds will always reflect the actual version of live-build used. Gbp-Dch: Ignore
Diffstat (limited to 'functions/configuration.sh')
-rwxr-xr-xfunctions/configuration.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/configuration.sh b/functions/configuration.sh
index 7dfea3765..5f5abb82b 100755
--- a/functions/configuration.sh
+++ b/functions/configuration.sh
@@ -390,7 +390,7 @@ Prepare_config ()
LB_BOOTAPPEND_INSTALL="$(echo ${LB_BOOTAPPEND_INSTALL} | sed -e 's/[ \t]*$//')"
LB_ISO_APPLICATION="${LB_ISO_APPLICATION:-Debian Live}"
- LB_ISO_PREPARER="${LB_ISO_PREPARER:-live-build \$VERSION; https://salsa.debian.org/live-team/live-build}"
+ LB_ISO_PREPARER="${LB_ISO_PREPARER:-live-build @LB_VERSION@; https://salsa.debian.org/live-team/live-build}"
LB_ISO_PUBLISHER="${LB_ISO_PUBLISHER:-Debian Live project; https://wiki.debian.org/DebianLive; debian-live@lists.debian.org}"
LB_ISO_VOLUME="${LB_ISO_VOLUME:-Debian ${LB_DISTRIBUTION} \$(date $DATE_UTC_OPTION +%Y%m%d-%H:%M)}"