OSDN Git Service

1-install: recommend to install EFI GRUB2
authorChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 6 Feb 2018 03:16:31 +0000 (11:16 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 6 Feb 2018 03:16:31 +0000 (11:16 +0800)
You should install it unless you know what you're doing.

install/scripts/1-install

index af94fb2..5f92624 100644 (file)
@@ -1,6 +1,6 @@
 #
 # By Chih-Wei Huang <cwhuang@linux.org.tw>
-# Last updated 2018/01/31
+# Last updated 2018/02/06
 #
 # License: GNU Public License
 # We explicitely grant the right to use the scripts
@@ -393,7 +393,7 @@ install_to()
                [ $? -ne 0 ] && return 255
        fi
 
-       [ -n "$efi" ] && adialog --title " Confirm " --no-label Skip --defaultno --yesno \
+       [ -n "$efi" ] && adialog --title " Confirm " --no-label Skip --yesno \
                "\n Do you want to install EFI GRUB2?" 7 39
        if [ $? -eq 0 ]; then
                for i in `list_disks`; do
@@ -442,7 +442,7 @@ install_to()
                efibootmgr | grep -Eo ".{0,6}Android-x86" | cut -c1-4 > /tmp/efientries
                if [ -s /tmp/efientries ]; then
                        set_answer_if_auto 1
-                       adialog --title " Question " --defaultno --yesno "\nEFI boot entries for previous Android-x86 installations were found.\n\nDo you wish to delete them?" 10 61
+                       adialog --title " Question " --yesno "\nEFI boot entries for previous Android-x86 installations were found.\n\nDo you wish to delete them?" 10 61
                        [ $? -eq 0 ] && while read entry; do efibootmgr -Bb "$entry" > /dev/tty4 2>&1; done < /tmp/efientries
                fi
                efibootmgr -v -c -d /dev/$disk -p $esp -L "Android-x86 $VER" -l /efi/Android/$bootefi > /dev/tty4 2>&1