• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

bootable/newinstaller


Commit MetaInfo

Revision96a3b7f3a9e09698ba88213202c025d77f33a165 (tree)
Time2018-06-10 17:12:31
AuthorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

1-install: skip the whole disk on finding ESP

Change Summary

Incremental Difference

--- a/install/scripts/1-install
+++ b/install/scripts/1-install
@@ -423,7 +423,7 @@ install_to()
423423 done
424424 if [ -z "$esp" ]; then
425425 get_part_info $1
426- boot=$(blkid /dev/$disk* | grep vfat | cut -d: -f1 | head -1)
426+ boot=$(blkid /dev/$disk* | grep -v $disk: | grep vfat | cut -d: -f1 | head -1)
427427 [ -z "$boot" ] && boot=`find_partition $disk 1` || boot=`basename $boot`
428428 esp=`cat /sys/block/$disk/$boot/partition`
429429 fi