/[smeserver]/builds_bin/build_ISO
ViewVC logotype

Contents of /builds_bin/build_ISO

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.9 - (show annotations) (download)
Sat Apr 14 21:21:22 2007 UTC (17 years, 6 months ago) by slords
Branch: MAIN
Changes since 1.8: +0 -1 lines
Update tools

1 #!/bin/sh
2
3 # Charlie Brady wrote on smeserver-developer:
4 # [I'm sure I've said this before, but ...] there's no new anaconda SRPM.
5 # The cdrom image I've been using comes directly from a CentOS one.
6
7 #
8 # What I've done is:
9 #
10 # - add CentOS/base/updates.img, made using mkcramfs from the updates directory
11 # - delete unwanted RPMs
12 # - add wanted RPMs
13 # - replace comps.xml
14 # - add install.cfg and update.cfg
15 # - edit isolinux/isolinux.cfg
16 #
17 # Run this in the a 7.0alphaXX directory, containing cdrom.image
18 # which contains the directory tree:
19
20
21 echo "Checking packages not installed in CentOS workstation group"
22 for package in anaconda anaconda-runtime bogl booty createrepo mkisofs zsync
23 do
24 rpm -q $package || exit "$package must be installed"
25 done
26
27 [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
28
29 distname='SME Server'
30 disttag='smeserver'
31 distvers=$(basename $(pwd))
32
33 [ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda
34
35 for img in product updates
36 do
37 /usr/bin/mkcramfs \
38 $(pwd)/cdrom.image/$img \
39 $(pwd)/cdrom.image/CentOS/base/$img.img
40 done
41
42 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
43 --withnumbers \
44 $(pwd)/cdrom.image/
45
46 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
47 $(pwd)/cdrom.image \
48 i386 > pkgorder
49
50 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
51 --withnumbers \
52 --fileorder pkgorder \
53 $(pwd)/cdrom.image/
54
55 rm -f $disttag-$distvers.iso smeserver.iso
56
57 cd cdrom.image
58
59 createrepo .
60 repoview .
61
62 bootimg='isolinux/isolinux.bin'
63 bootcat='isolinux/boot.cat'
64 #mkisopts='-r -N -L -d -D -J'
65 mkisopts='-r -J'
66 today="$(date '+%d %b %Y')"
67 mkisofs $mkisopts \
68 -V "$distname $distvers" \
69 -A "$distname created on $today" \
70 -b "$bootimg" \
71 -c "$bootcat" \
72 -no-emul-boot -boot-load-size 4 -boot-info-table \
73 -x lost+found \
74 -x CVS \
75 -o "../$disttag-$distvers".iso \
76 .
77
78 cd ..
79 /usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso
80 dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso
81 md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum
82 ls -lRt > $disttag-$distvers.iso.ls-lRt
83 zsyncmake $disttag-$distvers.iso
84 mv $disttag-$distvers.iso $disttag.iso
85 ln -sf $disttag.iso $disttag-$distvers.iso
86
87 echo "Building SRPMS ISO"
88
89 rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
90
91 mkisofs $mkisopts \
92 -V "$distname $distvers SRPMS" \
93 -A "$distname SRPMS created on $today" \
94 -x lost+found \
95 -x CVS \
96 -x cdrom.image \
97 -o "$disttag-$distvers-SRPMS".iso \
98 --graft-points \
99 ./SRPMS=SRPMS \
100 GPL=cdrom.image/GPL \
101 RPM-GPG-KEY=cdrom.image/RPM-GPG-KEY \
102 RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \
103 RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7
104
105 md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum
106 zsyncmake $disttag-$distvers-SRPMS.iso
107 mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso
108 ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
109
110 # That's it.
111

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed