From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 26 Jun 2019 17:06:59 +0200 Subject: [PATCH] 10_linux: generate BLS section even if no kernels are found in /boot The 10_linux script exits if no kernels are found in the /boot directory. This makes sense for a non-BLS configuration but doesn't when using BLS. Add a BLS section regardless if there are kernel images in /boot or not. That way the grub.cfg can be generated even before a kernel is installed. --- util/grub.d/10_linux.in | 98 ++++++++++++++++++++++++------------------------- 1 file changed, 48 insertions(+), 50 deletions(-) diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index 350903fa5ab..e6fd6f2a39a 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -96,6 +96,53 @@ cat <$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then @@ -291,9 +291,7 @@ submenu_indentation="" is_top_level=true while [ "x$list" != "x" ] ; do linux=`version_find_latest $list` - if [ "x${GRUB_ENABLE_BLSCFG}" != "xtrue" ]; then - gettext_printf "Found linux image: %s\n" "$linux" >&2 - fi + gettext_printf "Found linux image: %s\n" "$linux" >&2 basename=`basename $linux` dirname=`dirname $linux`