Chameleon

Chameleon Commit Details

Date:2011-08-18 16:53:09 (7 years 11 months ago)
Author:Azimutz
Commit:1428
Parents: 1427
Message:Just some comments and fixed typos.
Changes:
M/branches/azimutz/Package/package/Scripts/Standard/postinstall
M/branches/azimutz/Package/package/Scripts/Post/postinstall
M/branches/azimutz/Package/package/buildpkg.sh

File differences

branches/azimutz/Package/package/Scripts/Standard/postinstall
11
22
3
43
54
65
......
231230
232231
233232
234
233
235234
236235
237236
238
237
239238
240239
241240
......
287286
288287
289288
290
289
291290
292291
293292
......
311310
312311
313312
313
314314
315315
316316
317317
318318
319319
320
321
320
321
322
323
324
322325
323326
324327
......
329332
330333
331334
335
332336
333337
334338
......
358362
359363
360364
365
361366
362367
363368
#!/bin/bash
diskloader="boot0"
diskloaderdualboot="boot0md"
partitionloaderhfs="boot1h"
echo "*************************************"
if [ "$( fstyp ${bootdev} | grep hfs )" ]; then
echo "${bootdev} is a currently formatted as HFS"
echo "${bootdev} is currently formatted as HFS"
efiformat="hfs"
fi
if [ "$( fstyp ${bootdev} | grep msdos )" ]; then
echo "${bootdev} is currently formatted as msdos"
echo "${bootdev} is currently formatted as msdos" #Azipkg: hum... it's not really msdos, but ok...
efiformat="msdos"
fi
echo "-----------------------------------------------"
echo "Diskupdate = true, so yes"
#---------------------------------------------------------------------
# Check bytes 438-446 of the GPTdiskProtectiveMBR for a Windows Disk Signature
# If there's no Windows disk signature then we can write boot0
#---------------------------------------------------------------------
if [ ${disksignature} == "00000000" ]; then
if [ ${efiformat} = "msdos" ]; then
echo "Executing command: dd if=/usr/standalone/i386/${partitionloaderfat} of=${bootrdev}"
#Azipkg: just like this??... no preparation???
dd if="${bootvolume}/usr/standalone/i386/${partitionloaderfat}" of=${bootrdev}
fi
echo "Executing command: cp /usr/standalone/i386/${filesystemloader} ${bootvolume}"
cp "${bootvolume}/usr/standalone/i386/${filesystemloader}" "${bootvolume}"
echo "Executing command: ${bootresources}/Tools/SetFile -a V ${bootvolume}/${filesystemloader}"
"${bootresources}/Tools/SetFile" -a V "${bootvolume}/${filesystemloader}"
#Azipkg: at this point, we don't know if the user has setfile installed...
# and it looks like it's not found on "booteresources" ???
# do we really want to hide "boot"?... i never do...! IS THIS DONE HERE ??? SEE AT THE END OF THE FILE...
#echo "Executing command: ${bootresources}/Tools/SetFile -a V ${bootvolume}/${filesystemloader}"
#"${bootresources}/Tools/SetFile" -a V "${bootvolume}/${filesystemloader}"
echo "-----------------------------------------------"
echo ""
echo "Set Active Partition ONLY if Windows is not installed"
echo "*****************************************************"
#Azipkg: works for EFI, but does it work for other GPT partitions?... check, was under the impression that NO??!
if [ ${disksignature} == "00000000" ]; then
# echo "Windows is not installed so let's change the active partition"
echo ""
# hide boot file
#Azipkg: do we really want to hide "boot"?... i never do...
chflags hidden "${3}/boot"
echo "boot file hidden ${3}/boot"
branches/azimutz/Package/package/Scripts/Post/postinstall
3333
3434
3535
36
36
3737
38
38
3939
4040
dest_vol="$3"
fi
# delee the temporary Chameleon folder
# delete the temporary Chameleon folder
rm -rf "$dest_vol/tmpcham"
rm -rf "$dest_vol/tmpcham" #Azipkg: were's this? sandbox???
echo "Done..."
branches/azimutz/Package/package/buildpkg.sh
7474
7575
7676
77
77
7878
7979
8080
......
8686
8787
8888
89
90
8991
9092
9193
ditto --noextattr --noqtn ${1%/*}/i386/boot ${1}/Core/Root/usr/standalone/i386
ditto --noextattr --noqtn ${1%/*}/i386/boot0 ${1}/Core/Root/usr/standalone/i386
ditto --noextattr --noqtn ${1%/*}/i386/boot0md ${1}/Core/Root/usr/standalone/i386
#ditto --noextattr --noqtn ${1%/*}/i386/boot0hf ${1}/Core/Root/usr/standalone/i386
#ditto --noextattr --noqtn ${1%/*}/i386/boot0hf ${1}/Core/Root/usr/standalone/i386 #Azipkg
ditto --noextattr --noqtn ${1%/*}/i386/boot1f32 ${1}/Core/Root/usr/standalone/i386
ditto --noextattr --noqtn ${1%/*}/i386/boot1h ${1}/Core/Root/usr/standalone/i386
ditto --noextattr --noqtn ${1%/*}/i386/boot1he ${1}/Core/Root/usr/standalone/i386
ditto --noextattr --noqtn ${1%/*}/i386/bdmesg ${1}/Core/Root/usr/local/bin #Azipkg
local coresize=$( du -hkc "${1}/Core/Root" | tail -n1 | awk {'print $1'} )
echo "[BUILD] i386 "
#Azipkg: relocatable=\"false\" were to place it ??? needed ???
# $1 Path to package to build containing Root and or Scripts $2 Install Location $3 Size $4 Options
buildpackage "${1}/Core" "/" "0" "start_visible=\"false\" start_selected=\"true\"" >/dev/null 2>&1
# build Chameleon package

Archive Download the corresponding diff file

Revision: 1428