grub2|loopback: avoid empty submenu

don't include the advanced menu at all if it's only entry - memtest - is
not included (you just get a menu entry that does nothing, which may
confused users into thinking that something is broken, as opposed to
showing an empty submenu as i expected).

Gbp-Dch: Short
This commit is contained in:
Lyndon Brown 2020-03-27 02:07:08 +00:00 committed by Raphaël Hertzog
parent 5ac625e3e1
commit 46b0d85021
1 changed files with 2 additions and 2 deletions

View File

@ -57,11 +57,11 @@ submenu 'Advanced install options...' {
}
fi
if @ENABLE_MEMTEST@; then
submenu 'Advanced options...' --hotkey=a {
# Memtest (if any)
if @ENABLE_MEMTEST@; then
source /boot/grub/memtest.cfg
fi
}
fi