summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorjnqnfe <jnqnfe@gmail.com>2015-01-11 21:25:18 +0000
committerLyndon Brown <jnqnfe@gmail.com>2020-03-16 16:29:00 +0000
commitaadf8c4cacecc4664412c6bbc7b8e039e1dd772a (patch)
tree04396c78ef5451ac978718cc142b76c56022efd5 /scripts
parenta33938f8d47f23c23335ecf671b1db9afcd0b726 (diff)
downloadvyos-live-build-aadf8c4cacecc4664412c6bbc7b8e039e1dd772a.tar.gz
vyos-live-build-aadf8c4cacecc4664412c6bbc7b8e039e1dd772a.zip
grub1/grub2/loopback: fix missing delimiter in menu kernel parameter lists
The '---' delimiter should appear before the final 'quiet' parameter (which is used by the debian installer I believe). This delimiter is added by live-build in syslinux configs, and is present in both grub2 and syslinux configs in an official debian 7.7 disc image, suggesting strongly that live-build grub/grub2 menu creation code is in the wrong here by missing it. update: this commit previously used -- as was correct at the time, and has since been updated to use --- per #775128; which was previously tackled in a separate later commit. the switch to --- was already done for syslinux (which was not missing the delimiter unlike grub) in ba6b9adeff634845a9ab7cbd5218257a7aa254ab Gbp-Dch: Short Closes: #775143
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_grub-legacy3
-rwxr-xr-xscripts/build/binary_loopback_cfg6
2 files changed, 4 insertions, 5 deletions
diff --git a/scripts/build/binary_grub-legacy b/scripts/build/binary_grub-legacy
index c0b74888c..39d647a02 100755
--- a/scripts/build/binary_grub-legacy
+++ b/scripts/build/binary_grub-legacy
@@ -67,7 +67,7 @@ Grub_install_entry ()
INITRD="${3}"
APPEND="${4}"
- QAPPEND="quiet"
+ QAPPEND="--- quiet"
for TYPE in Install Expert Rescue Auto
do
@@ -98,7 +98,6 @@ Grub_install_entry ()
;;
esac
-
LINUX_INSTALL="${LINUX_INSTALL}\ntitle\t\t${LABEL} ${TYPE}"
LINUX_INSTALL="${LINUX_INSTALL}\nkernel\t\t/${KERNEL} ${TAPPEND}"
LINUX_INSTALL="${LINUX_INSTALL}\ninitrd\t\t/${INITRD}"
diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg
index 08629332d..5bb349ec3 100755
--- a/scripts/build/binary_loopback_cfg
+++ b/scripts/build/binary_loopback_cfg
@@ -75,7 +75,7 @@ Grub_install_entry ()
# Drop "quiet" kernel parameter for expert entries
case $TYPE in
expert|expertgui)
- APPEND=$(echo "$APPEND" | sed -e 's/ quiet//')
+ APPEND=$(echo "$APPEND" | sed -e 's/ --- quiet//')
;;
esac
@@ -233,11 +233,11 @@ if [ "${LB_DEBIAN_INSTALLER}" != "none" ]
then
KERNEL_DI="/install/vmlinuz"
INITRD_DI="/install/initrd.gz"
- APPEND_DI="vga=normal ${LB_BOOTAPPEND_INSTALL} quiet"
+ APPEND_DI="vga=normal ${LB_BOOTAPPEND_INSTALL} --- quiet"
KERNEL_GI="/install/gtk/vmlinuz"
INITRD_GI="/install/gtk/initrd.gz"
- APPEND_GI="video=vesa:ywrap,mtrr vga=788 ${LB_BOOTAPPEND_INSTALL} quiet"
+ APPEND_GI="video=vesa:ywrap,mtrr vga=788 ${LB_BOOTAPPEND_INSTALL} --- quiet"
if [ "${LB_DEBIAN_INSTALLER_GUI}" = "true" ]; then
Grub_install_entry "Start installer" "installgui" "${KERNEL_GI}" "${INITRD_GI}" "${APPEND_GI}"