mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-21 17:36:43 +00:00
kexec-select-boot: Simplify boot selection confirmation, reverse order
Simplify the menu options by removing the duplication of the entry name in the menu selections; instead, use clear verbiage to distinish between booting one time and making the default. And as the majority of the boot menu is shown is when the grub entires have changed and the user is prompted to select a new default, so make that the first/default menu option. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
7769d13996
commit
19067a9a72
@ -134,9 +134,11 @@ get_menu_option() {
|
||||
|
||||
confirm_menu_option() {
|
||||
if [ "$gui_menu" = "y" ]; then
|
||||
default_text="Make default"
|
||||
[[ "$CONFIG_TPM_NO_LUKS_DISK_UNLOCK" = "y" ]] && default_text="${default_text} and boot"
|
||||
whiptail $BG_COLOR_WARNING --clear --title "Confirm boot details" \
|
||||
--menu "Confirm the boot details for $name:\n\n$option\n\n" 20 120 8 \
|
||||
-- 'y' "Boot $name" 'd' "Make $name the default" \
|
||||
--menu "Confirm the boot details for $name:\n\n$kernel \n\n" 20 120 8 \
|
||||
-- 'd' "${default_text}" 'y' "Boot one time" \
|
||||
2>/tmp/whiptail || die "Aborting boot attempt"
|
||||
|
||||
option_confirm=$(cat /tmp/whiptail)
|
||||
|
Loading…
x
Reference in New Issue
Block a user