bootable/newinstaller
リビジョン | 96a3b7f3a9e09698ba88213202c025d77f33a165 (tree) |
---|---|
日時 | 2018-06-10 17:12:31 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
コミッター | Chih-Wei Huang |
1-install: skip the whole disk on finding ESP
@@ -423,7 +423,7 @@ install_to() | ||
423 | 423 | done |
424 | 424 | if [ -z "$esp" ]; then |
425 | 425 | 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) | |
427 | 427 | [ -z "$boot" ] && boot=`find_partition $disk 1` || boot=`basename $boot` |
428 | 428 | esp=`cat /sys/block/$disk/$boot/partition` |
429 | 429 | fi |