blob: e05ec8b548d3e57948d4e2dd0954c5cbea99719d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#
# quick script to make bootable HFS CD for linux
#
#
#!/bin/sh
#
#mkCD1 <CD tree> <output image name>
#Parameters:
if ! rpm -q hfsutils ; then
echo 'You need hfsutils installed!!'
exit 1
fi
if [ -e $2 ] ; then
echo 'Output image $2 exists, please delete'
echo 'usage: mkCD1 <CD tree> <output image name>'
exit 1
fi
if [ ! -d $1 ] ; then
echo 'CD tree $1 is not a directory!'
echo 'usage: mkCD1 <CD tree> <output image name>'
exit 1
fi
# select the appropriate mkhybrid binary depending on if
# we are on x86 or ppc
ARCH=`uname -m | sed -e 's/i.86/i386/' -e 's/sparc.*/sparc/'`
if [ "$ARCH" == "ppc" ]; then
MKHYBRID=mkhybrid-1.12b5.4
else
if [ "$ARCH" == "i386" ]; then
MKHYBRID=mkhybrid-1.12b5.4-x86
else
echo "Sorry, no mkhybrid binary for $ARCH..."
exit
fi
fi
#Change these when you build the CD..
ApplicationID="Linux-Mandrake"
PublisherID="MandrakeSoft"
PreparerID="sbenedict@mandrakesoft.com"
SystemID=PPC
volid=ppc
hfsVolid=Linux-Mandrake
curPwd=`pwd`
$curPwd/$MKHYBRID -part -hfs -r -l -J \
-A $ApplicationID \
-P $PublisherID \
-p $PreparerID \
-abstract "README" \
-sysid $SystemID \
-V $volid \
-volset "Update" \
-volset-size 2 \
-volset-seqno 1 \
-hfs-volid $hfsVolid \
-map $curPwd/mapping \
-magic $curPwd/magic \
-m "*.orig" \
-hide '*.MacOS' -hide '*.DOS' \
-hide-joliet '*.Unix' -hide-joliet '*.MacOS' \
-hide-hfs '*.Unix' -hide-hfs '*.DOS' \
-pad \
-o $2 \
$1
#Bless boot folder so yaboot can boot
hmount $2
hattrib -b boot
hcd boot
hattrib -t tbxi yaboot
humount
|