mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +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() {
|
save_default_option() {
|
||||||
read \
|
read \
|
||||||
-n 1 \
|
-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
|
default_confirm
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ "$default_confirm" = "y" ]; then
|
[ "$default_confirm" = "" ] && default_confirm="y"
|
||||||
|
if [[ "$default_confirm" = "y" || "$default_confirm" = "Y" ]]; then
|
||||||
if kexec-save-default \
|
if kexec-save-default \
|
||||||
-b "$bootdir" \
|
-b "$bootdir" \
|
||||||
-d "$paramsdev" \
|
-d "$paramsdev" \
|
||||||
|
Loading…
Reference in New Issue
Block a user