mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 21:43:11 +00:00
kecec_select_boot: default to Y when setting new boot option
Next prompt will be to ensure GPG key is attached, which defaults to Y, so default here as well for consistency Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
29f89ae47b
commit
5ff3849c16
@ -186,11 +186,12 @@ scan_options() {
|
||||
save_default_option() {
|
||||
read \
|
||||
-n 1 \
|
||||
-p "Saving a default will modify the disk. Proceed? (y/n): " \
|
||||
-p "Saving a default will modify the disk. Proceed? (Y/n): " \
|
||||
default_confirm
|
||||
echo
|
||||
|
||||
if [ "$default_confirm" = "y" ]; then
|
||||
[ "$default_confirm" = "" ] && default_confirm="y"
|
||||
if [[ "$default_confirm" = "y" || "$default_confirm" = "Y" ]]; then
|
||||
if kexec-save-default \
|
||||
-b "$bootdir" \
|
||||
-d "$paramsdev" \
|
||||
|
Loading…
Reference in New Issue
Block a user