mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-30 01:38:56 +00:00
kexec-select-boot: Simplify boot menu entries
Drop the duplicated kernel info which hurts readability, runs off the end of the menu window. This also makes it easier to identify which menu option is the default, and more closely resembles the grub menu shown in a traditional BIOS boot. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
b07833e1b7
commit
7769d13996
@ -99,8 +99,7 @@ get_menu_option() {
|
|||||||
parse_option
|
parse_option
|
||||||
n=`expr $n + 1`
|
n=`expr $n + 1`
|
||||||
name=$(echo $name | tr " " "_")
|
name=$(echo $name | tr " " "_")
|
||||||
kernel=$(echo $kernel | cut -f2 -d " ")
|
MENU_OPTIONS="$MENU_OPTIONS $n ${name} "
|
||||||
MENU_OPTIONS="$MENU_OPTIONS $n ${name}_[$kernel]"
|
|
||||||
done < $TMP_MENU_FILE
|
done < $TMP_MENU_FILE
|
||||||
|
|
||||||
whiptail --clear --title "Select your boot option" \
|
whiptail --clear --title "Select your boot option" \
|
||||||
|
Loading…
Reference in New Issue
Block a user