summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorAdrian Gibanel Lopez <adrian.gibanel@btactic.com>2017-12-15 18:27:48 +0000
committerRaphaël Hertzog <hertzog@debian.org>2017-12-21 14:16:57 +0100
commitf77034606e7b291b9a0824f105aa76be64ec7cbc (patch)
tree64eeeed5f9a631cee8c22caa7180e08d4de55c79 /scripts/build
parentd33943ea7a71ba5d874eb20f47bb898da485c77d (diff)
downloadvyos-live-build-f77034606e7b291b9a0824f105aa76be64ec7cbc.tar.gz
vyos-live-build-f77034606e7b291b9a0824f105aa76be64ec7cbc.zip
Updated binary_loopback_cfg so that it uses Stretch's 686 kernel instead of old 486 one.
[hertzog@debian.org: Also rename the variables for consistency. ] Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
Diffstat (limited to 'scripts/build')
-rwxr-xr-xscripts/build/binary_loopback_cfg24
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg
index 00f537c48..2e6787a72 100755
--- a/scripts/build/binary_loopback_cfg
+++ b/scripts/build/binary_loopback_cfg
@@ -99,8 +99,8 @@ Grub_live_autodetect_menu_entry ()
local LABEL="${1}"
local AMD64_KERNEL="${2}"
local AMD64_INITRD="${3}"
- local _486_KERNEL="${4}"
- local _486_INITRD="${5}"
+ local _686_KERNEL="${4}"
+ local _686_INITRD="${5}"
local APPEND="${6}"
cat <<END
# Autodetect if amd64 is supported
@@ -109,8 +109,8 @@ menuentry "$LABEL" {
linux ${AMD64_KERNEL} ${APPEND}
initrd ${AMD64_INITRD}
else
- linux ${_486_KERNEL} ${APPEND}
- initrd ${_486_INITRD}
+ linux ${_686_KERNEL} ${APPEND}
+ initrd ${_686_INITRD}
fi
}
END
@@ -178,27 +178,27 @@ INITRD_LIVE="/${INITFS}/${DEFAULT_INITRD}"
APPEND_LIVE="${LB_BOOTAPPEND_LIVE}"
# Assembling kernel configuration
-_AMD64_486_NUMBER="0"
+_AMD64_686_NUMBER="0"
for _FLAVOUR in ${LB_LINUX_FLAVOURS}
do
- if [ "${_FLAVOUR}" = "amd64" -o "${_FLAVOUR}" = "486" ] ; then
- _AMD64_486_NUMBER="$((${_AMD64_486_NUMBER} + 1))"
+ if [ "${_FLAVOUR}" = "amd64" -o "${_FLAVOUR}" = "686" ] ; then
+ _AMD64_686_NUMBER="$((${_AMD64_686_NUMBER} + 1))"
fi
done
-if [ "${_AMD64_486_NUMBER}" -ge 2 ] ; then
+if [ "${_AMD64_686_NUMBER}" -ge 2 ] ; then
# Default entries
AMD64_KERNEL="$(basename chroot/boot/vmlinuz-*amd64)"
AMD64_INITRD="initrd.img-$(echo ${AMD64_KERNEL} | sed -e 's|vmlinuz-||')"
- _486_KERNEL="$(basename chroot/boot/vmlinuz-*486)"
- _486_INITRD="initrd.img-$(echo ${_486_KERNEL} | sed -e 's|vmlinuz-||')"
+ _686_KERNEL="$(basename chroot/boot/vmlinuz-*686)"
+ _686_INITRD="initrd.img-$(echo ${_686_KERNEL} | sed -e 's|vmlinuz-||')"
Grub_live_autodetect_entry "Live system (autodetect)" \
"/${INITFS}/${AMD64_KERNEL}" \
"/${INITFS}/${AMD64_INITRD}" \
- "/${INITFS}/${_486_KERNEL}" \
- "/${INITFS}/${_486_INITRD}" \
+ "/${INITFS}/${_686_KERNEL}" \
+ "/${INITFS}/${_686_INITRD}" \
"$APPEND_LIVE"
else
Grub_live_entry "Live system" "/${INITFS}/${DEFAULT_KERNEL}" "/${INITFS}/${DEFAULT_INITRD}" "${APPEND_LIVE}"