Chameleon

Chameleon Commit Details

Date:2011-09-21 21:57:36 (12 years 5 months ago)
Author:blackosx
Commit:1557
Parents: 1556
Message:Fixed issue with EFI system partitio installation.
Changes:
M/branches/blackosx/package/Scripts/Install/WriteChameleonStage2.sh
M/branches/blackosx/package/Scripts/EFI/postinstall

File differences

branches/blackosx/package/Scripts/EFI/postinstall
151151
152152
153153
154
154
155155
156156
157
157
158158
159159
160160
fi
# Write the stage 1 loader to the partition boot sector
"$scriptDir"WriteChameleonStage1.sh "${espformat}" "${stage1LoaderHFS}" "${stage1LoaderFAT}" "${targetVolumeChosenByUser}" "${targetDeviceRaw}" "${targetVolume}" "${scriptDir}"
"$scriptDir"WriteChameleonStage1.sh "${espformat}" "${stage1LoaderHFS}" "${stage1LoaderFAT}" "${targetVolumeChosenByUser}" "${targetDeviceRaw}" "${targetVolumeChosenByUser}" "${scriptDir}"
# Write the stage 2 loader to the root of the selected partition
"$scriptDir"WriteChameleonStage2.sh "${espformat}" "${stage2Loader}" "${targetVolumeChosenByUser}" "${targetDevice}" "${targetVolume}" "${scriptDir}"
"$scriptDir"WriteChameleonStage2.sh "${espformat}" "${stage2Loader}" "${targetVolume}" "${targetDevice}" "${targetVolumeChosenByUser}" "${scriptDir}"
# Set the active partition ONLY if Windows is not installed
"$scriptDir"SetActivePartition.sh "${espformat}" "${diskSigCheck}" "${targetDiskRaw}" "${targetSlice}" "${targetVolumeChosenByUser}" "${scriptDir}"
branches/blackosx/package/Scripts/Install/WriteChameleonStage2.sh
3636
3737
3838
39
39
4040
4141
42
43
42
43
4444
4545
4646
......
5555
5656
5757
58
59
60
58
59
60
6161
6262
63
64
63
64
65
6566
6667
6768
69
6870
6971
70
7172
73
7274
7375
7476
# if chosen, the package installer will add a file named 'nullESP'
# in to the temporary directory /.Chameleon
if [ "${targetVolume}" = "/Volumes/EFI" ]; then
if [ "${selectedDestination}" = "/Volumes/EFI" ]; then
echo "DEBUG: EFI install chosen"
if [ ! -d "${targetVolume}" ]; then
echo "Executing Command: mkdir -p ${targetVolume}"
if [ ! -d "${selectedDestination}" ]; then
echo "Executing Command: mkdir -p ${selectedDestination}"
mkdir -p "${targetVolume}"
else
echo "DEBUG: folder /Volumes/EFI already exists"
mount_hfs "${targetDevice}" "${targetVolume}"
fi
if [ ${espformat} = 2 ]; then
[ -d "${targetVolume}" ] || mkdir -p "${targetVolume}"
echo "Executing command: mount_msdos -u 0 -g 0 ${targetDevice} ${targetVolume}"
mount_msdos -u 0 -g 0 "${targetDevice}" "${targetVolume}"
[ -d "${selectedDestination}" ] || mkdir -p "${selectedDestination}"
echo "Executing command: mount_msdos -u 0 -g 0 ${targetDevice} ${selectedDestination}"
mount_msdos -u 0 -g 0 "${targetDevice}" "${selectedDestination}"
fi
echo "Executing command: cp "${selectedDestination}"/usr/standalone/i386/${stage2Loader} ${targetVolume}"
cp "${selectedDestination}"/usr/standalone/i386/"${stage2Loader}" "${targetVolume}"
echo "Executing command: cp "${targetVolume}"/usr/standalone/i386/${stage2Loader} ${selectedDestination}"
cp "${targetVolume}"/usr/standalone/i386/"${stage2Loader}" "${selectedDestination}"
"$scriptDir"InstallLog.sh "${targetVolume}" "Written boot to ${selectedDestination}."
else
echo "Executing command: cp "${targetVolume}"/usr/standalone/i386/${stage2Loader} ${targetVolume}"
cp "${targetVolume}"/usr/standalone/i386/"${stage2Loader}" "${targetVolume}"
"$scriptDir"InstallLog.sh "${targetVolume}" "Written boot to ${targetVolume}."
fi
"$scriptDir"InstallLog.sh "${targetVolume}" "Written boot to ${targetVolume}."
#if [ -f "${selectedDestination}"/.Chameleon/nullhideboot ]; then

Archive Download the corresponding diff file

Revision: 1557