OSDN Git Service
(root)
/
android-x86
/
bootable-newinstaller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95d633f
)
Search for efi partition
author
Luke
<hatharry@gmail.com>
Tue, 19 Jan 2016 01:20:18 +0000
(14:20 +1300)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Mon, 1 Feb 2016 07:12:44 +0000
(15:12 +0800)
install/scripts/1-install
patch
|
blob
|
history
diff --git
a/install/scripts/1-install
b/install/scripts/1-install
index
2f20988
..
094a032
100644
(file)
--- a/
install/scripts/1-install
+++ b/
install/scripts/1-install
@@
-283,9
+283,10
@@
install_to()
if [ $? -eq 0 ]; then
get_part_info $1
for i in /sys/block/$disk/$disk*; do
- [ 0`cat $i/partition` -eq 1 ] && break
+ [ 0`cat $i/partition` -eq 1 ] && b=$i
+ [ $(blkid /dev/`basename $i` | grep -c vfat) -ne 0 ] && b=$i && break
done
- boot=`basename $
i
`
+ boot=`basename $
b
`
mountpoint -q /hd && umount /hd
dialog --title " Confirm " --defaultno --yesno \
"\n Do you want to format the boot partition\n /dev/$boot?" 8 45