Chameleon

Chameleon Commit Details

Date:2011-09-21 12:46:20 (2 years 11 months ago)
Author:blackosx
Commit:1554
Parents: 1553
Message:Fix bug in identifying if disk has EFI system partition.
Changes:
M/branches/blackosx/package/Scripts/Install/CheckProceed.sh

File differences

branches/blackosx/package/Scripts/Install/CheckProceed.sh
4545
4646
4747
48
49
48
49
50
51
52
53
5054
51
55
5256
5357
5458
# 1GB USB flash drive which won't have an EFI System Partition.
if [ "$targetVolume" = "/Volumes/EFI" ]; then
existESP=$( df | grep $targetDevice | awk {'print $6'} )
if [ ! "$existESP" = "/Volumes/EFI" ]; then
# Take target device and check slice 1 matches partition named "EFI"
stripped=$( echo ${targetDevice#/dev/} )
if [ ! $(echo ${stripped#*disk*s}) = 1 ]; then
stripped=$( echo ${stripped%s*})"s1"
fi
if [ ! $( diskutil list | grep ${stripped} | awk {'print $2'} ) = "EFI" ]; then
echo "*** The selected volume doesn't have an EFI System Partition. Exiting."
"$scriptDir"InstallLog.sh "${installerVolume}" "FAIL: Target disk doesn't have an EFI System Partition."
"$scriptDir"InstallLog.sh "${installerVolume}" "FAIL: Selected disk does not have an EFI System Partition."
exit 1
fi
fi

Archive Download the corresponding diff file

Revision: 1554