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:
Matt DeVillier 2022-03-15 12:00:20 -05:00
parent b07833e1b7
commit 7769d13996
No known key found for this signature in database
GPG Key ID: 2BBB776A35B978FD

View File

@ -99,8 +99,7 @@ get_menu_option() {
parse_option
n=`expr $n + 1`
name=$(echo $name | tr " " "_")
kernel=$(echo $kernel | cut -f2 -d " ")
MENU_OPTIONS="$MENU_OPTIONS $n ${name}_[$kernel]"
MENU_OPTIONS="$MENU_OPTIONS $n ${name} "
done < $TMP_MENU_FILE
whiptail --clear --title "Select your boot option" \