summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-04-01 11:25:56 +0100
committerRaphaƫl Hertzog <hertzog@debian.org>2020-04-23 16:00:34 +0200
commit8ffe48d8f3825a3741deeb0a45e5372b5ed5504c (patch)
treedbad3fe8ffb17c1f0b69e021f6406433876a2ecc /functions
parent047885bf7e5c3f527a44b0be5c73c2d1f027d300 (diff)
downloadvyos-live-build-8ffe48d8f3825a3741deeb0a45e5372b5ed5504c.tar.gz
vyos-live-build-8ffe48d8f3825a3741deeb0a45e5372b5ed5504c.zip
rename LB_BOOTSTRAP_QEMU_ARCHITECTURES to LB_BOOTSTRAP_QEMU_ARCHITECTURE
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/architectures.sh8
-rwxr-xr-xfunctions/configuration.sh7
2 files changed, 10 insertions, 5 deletions
diff --git a/functions/architectures.sh b/functions/architectures.sh
index 91c1b42cc..285c681d4 100755
--- a/functions/architectures.sh
+++ b/functions/architectures.sh
@@ -25,13 +25,13 @@ Check_architectures ()
fi
done
- if [ "${ARCHITECTURES}" = "${LB_BOOTSTRAP_QEMU_ARCHITECTURES}" ]
+ if [ "${ARCHITECTURES}" = "${LB_BOOTSTRAP_QEMU_ARCHITECTURE}" ]
then
VALID=true
if [ ! -e "${LB_BOOTSTRAP_QEMU_STATIC}" ]
then
- Echo_warning "skipping %s, qemu-static binary ${LB_BOOTSTRAP_QEMU_ARCHITECTURES} was not found"
+ Echo_warning "skipping %s, qemu-static binary ${LB_BOOTSTRAP_QEMU_ARCHITECTURE} was not found"
VALID=false
fi
@@ -75,12 +75,12 @@ Check_crossarchitectures ()
;;
esac
- if [ "${LB_ARCHITECTURE}" = "${LB_BOOTSTRAP_QEMU_ARCHITECTURES}" ]
+ if [ "${LB_ARCHITECTURE}" = "${LB_BOOTSTRAP_QEMU_ARCHITECTURE}" ]
then
if [ ! -e "${LB_BOOTSTRAP_QEMU_STATIC}" ]
then
- Echo_warning "skipping %s, qemu-static binary ${LB_BOOTSTRAP_QEMU_ARCHITECTURES} was not found"
+ Echo_warning "skipping %s, qemu-static binary ${LB_BOOTSTRAP_QEMU_ARCHITECTURE} was not found"
exit 0
fi
diff --git a/functions/configuration.sh b/functions/configuration.sh
index 6e8323f38..a39b9dfb0 100755
--- a/functions/configuration.sh
+++ b/functions/configuration.sh
@@ -480,7 +480,12 @@ Prepare_config ()
LB_SOURCE_IMAGES="$(echo "${LB_SOURCE_IMAGES}" | tr "," " ")"
# Foreign/port bootstrapping
- LB_BOOTSTRAP_QEMU_ARCHITECTURES="${LB_BOOTSTRAP_QEMU_ARCHITECTURES:-}"
+ if [ -n "${LB_BOOTSTRAP_QEMU_ARCHITECTURES}" ]; then
+ LB_BOOTSTRAP_QEMU_ARCHITECTURE="${LB_BOOTSTRAP_QEMU_ARCHITECTURES}"
+ unset LB_BOOTSTRAP_QEMU_ARCHITECTURES
+ Echo_warning "LB_BOOTSTRAP_QEMU_ARCHITECTURES was renamed to LB_BOOTSTRAP_QEMU_ARCHITECTURE, please updated your config."
+ fi
+ LB_BOOTSTRAP_QEMU_ARCHITECTURE="${LB_BOOTSTRAP_QEMU_ARCHITECTURE:-}"
LB_BOOTSTRAP_QEMU_EXCLUDE="${LB_BOOTSTRAP_QEMU_EXCLUDE:-}"
LB_BOOTSTRAP_QEMU_STATIC="${LB_BOOTSTRAP_QEMU_STATIC:-}"
}