]> code.delx.au - refind/blobdiff - install.sh
Remove exFAT partitions from boot list under OS X unless they contain
[refind] / install.sh
index 645c1b46660bfd8f2dfc9162771d6370105e22f3..fd7bb1f9c1236dcd1bc76ce75fbc55fcd1273568 100755 (executable)
@@ -409,8 +409,8 @@ MountDefaultTarget() {
 MountOSXESP() {
    # Identify the ESP. Note: This returns the FIRST ESP found;
    # if the system has multiple disks, this could be wrong!
-   Temp=`diskutil list | grep " EFI "`
-   Esp=/dev/`echo $Temp | cut -f 5 -d ' '`
+   Temp=`diskutil list | grep " EFI " | grep -o 'disk.*'`
+   Esp=/dev/`echo $Temp`
    # If the ESP is mounted, use its current mount point....
    Temp=`df -P | grep "$Esp"`
    InstallDir=`echo $Temp | cut -f 6 -d ' '`