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:
Matt DeVillier 2019-07-09 11:43:06 -05:00
parent 29f89ae47b
commit 5ff3849c16
No known key found for this signature in database
GPG Key ID: 2BBB776A35B978FD

View File

@ -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" \