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:
parent
5ac625e3e1
commit
46b0d85021
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue