]> git.ipfire.org Git - thirdparty/grub.git/commit
templates: Fix bad test on GRUB_DISABLE_SUBMENU
authorPrarit Bhargava <prarit@redhat.com>
Mon, 30 Sep 2019 15:00:16 +0000 (17:00 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 21 Oct 2019 12:05:02 +0000 (14:05 +0200)
commitee4bd79ef28e6fa4a68bb51c31a5e67a7cbf01ea
treee774a01c297fd88c3f0694258fea6e5da2485bad
parentc7cb11b2198a07098143ecc67b19497ba25df28f
templates: Fix bad test on GRUB_DISABLE_SUBMENU

The GRUB_DISABLE_SUBMENU option is different than the others in the sense
that it has to be set to "y" instead of "true" to be enabled.

That causes a lot of confusion to users, some may wrongly set it to "true"
expecting that will work the same than with most options, and some may set
it to "yes" since for other options the value to set is a word and not a
single character.

This patch changes all the grub.d scripts using the GRUB_DISABLE_SUBMENU
option, so they check if it was set to "true" instead of "y", making it
consistent with all the other options.

But to keep backward compatibility for users that set the option to "y" in
/etc/default/grub file, keep testing for this value. And also do it for
"yes", since it is a common mistake made by users caused by this option
being inconsistent with the others.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
docs/grub.texi
util/grub.d/10_hurd.in
util/grub.d/10_kfreebsd.in
util/grub.d/10_linux.in
util/grub.d/10_netbsd.in
util/grub.d/20_linux_xen.in
util/grub.d/30_os-prober.in