Chameleon Applications

Chameleon Applications Commit Details

Date:2010-10-29 09:02:32 (10 years 5 months ago)
Author:blackosx
Commit:196
Parents: 195
Message:Just making sure the active flag is set for the partition being installed to.
Changes:
M/branches/blackosx/trunk/package/Scripts/Standard/postinstall
M/branches/blackosx/trunk/revision

File differences

branches/blackosx/trunk/package/Scripts/Standard/postinstall
304304
305305
306306
307
308
307309
308
310
309311
310
311
312
312
313313
314
315
314
315
316
316317
317318
318319
......
320321
321322
322323
324
325
323326
327
328
324329
325330
326331
echo "*****************************************************"
if [ ${disksignature} == "00000000" ]; then
# echo "Windows is not installed so let's change the active partition"
partitionactive=$( fdisk440 -d ${bootrdisk} | grep -n "*" | awk -F: '{print $1}')
echo "${partitionactive}"
echo "Current Active Partition: ${partitionactive}"
if [ -n "${partitionactive}" ]; then
echo "${bootvolume} is flagged as active"
else
if [ ${partitionactive} -ne ${bootslice} ]; then
echo "${bootvolume} is not flagged as active, so let's do it."
# // If table is GPT make the first partition active (BadAxe compatibility).
# BadAxe requires EFI partition to be flagged active.
# but it doesn't' hurt to do it for any non-windows partition.
fdisk440 -e ${bootrdisk} <<-MAKEACTIVE
print
flag ${bootslice}
y
quit
MAKEACTIVE
else
echo "${bootvolume} is already flagged as active"
fi
else
echo "Windows is installed so we let that remain the active partition"
fi
echo "-----------------------------------------------"
echo ""
branches/blackosx/trunk/revision
1
1
161:162
195

Archive Download the corresponding diff file

Revision: 196