From acafe6618bfb7a9f7525e723e13ade2956e10b4f Mon Sep 17 00:00:00 2001 From: Adrian Gibanel Lopez Date: Sat, 16 Dec 2017 23:01:33 +0000 Subject: Failsafe entries rework at binary_loopback_cfg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [hertzog@debian.org: - Fix conflicts due to renamed variables ] Signed-off-by: Raphaël Hertzog --- debian/changelog | 3 +++ scripts/build/binary_loopback_cfg | 21 +++++++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index e4b5b449f..fef7d9f89 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,9 @@ live-build (1:20171208) UNRELEASED; urgency=medium Thanks to Adrian Gibanel Lopez for the patch. * Fix handling of multiple kernels in binary_loopback_cfg. Closes: #884588 Thanks to Adrian Gibanel Lopez for the patch. + * Rework failsafe entries in grub configuration to be more + consistent with the i386/amd64 autodetection entries. + Closes: #884591 Thanks to Adrian Gibanel Lopez for the patch. -- Raphaël Hertzog Thu, 21 Dec 2017 14:14:04 +0100 diff --git a/scripts/build/binary_loopback_cfg b/scripts/build/binary_loopback_cfg index ff487a40f..f710ed483 100755 --- a/scripts/build/binary_loopback_cfg +++ b/scripts/build/binary_loopback_cfg @@ -199,14 +199,23 @@ if [ "${_AMD64_686_NUMBER}" -ge 2 ] ; then "/${INITFS}/${AMD64_INITRD}" \ "/${INITFS}/${_686_KERNEL}" \ "/${INITFS}/${_686_INITRD}" \ - "$APPEND_LIVE" + "${APPEND_LIVE}" + + if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ] + then + Grub_live_autodetect_entry "Live system (autodetect) (fail-safe mode)" \ + "/${INITFS}/${AMD64_KERNEL}" \ + "/${INITFS}/${AMD64_INITRD}" \ + "/${INITFS}/${_686_KERNEL}" \ + "/${INITFS}/${_686_INITRD}" \ + "${LB_BOOTAPPEND_LIVE_FAILSAFE}" + fi else Grub_live_entry "Live system" "/${INITFS}/${DEFAULT_KERNEL}" "/${INITFS}/${DEFAULT_INITRD}" "${APPEND_LIVE}" -fi - -if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ] -then - Grub_live_entry "Live system (fail-safe mode)" "/${INITFS}/${DEFAULT_KERNEL}" "/${INITFS}/${DEFAULT_INITRD}" "${LB_BOOTAPPEND_LIVE_FAILSAFE}" + if [ "${LB_BOOTAPPEND_LIVE_FAILSAFE}" != "none" ] + then + Grub_live_entry "Live system (fail-safe mode)" "/${INITFS}/${DEFAULT_KERNEL}" "/${INITFS}/${DEFAULT_INITRD}" "${LB_BOOTAPPEND_LIVE_FAILSAFE}" + fi fi _COUNT=0 -- cgit v1.2.3