/[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.3 - (show annotations) (download)
Fri Jun 30 22:58:51 2006 UTC (18 years, 4 months ago) by gordonr
Branch: MAIN
Changes since 1.2: +17 -0 lines
Build SRPMS ISO

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 distvers=$(basename $(pwd))
31
32 [ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda
33
34 chmod -R a+rX cdrom.image
35
36 for img in product updates
37 do
38 /usr/bin/mkcramfs \
39 $(pwd)/cdrom.image/$img \
40 $(pwd)/cdrom.image/CentOS/base/$img.img
41 done
42
43 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
44 --withnumbers \
45 $(pwd)/cdrom.image/
46
47 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
48 $(pwd)/cdrom.image \
49 i386 > pkgorder
50
51 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
52 --withnumbers \
53 --fileorder pkgorder \
54 $(pwd)/cdrom.image/
55
56 rm -f smeserver-$distvers.iso smeserver.iso
57
58 cd cdrom.image
59
60 yum-arch .
61 createrepo .
62
63 bootimg='isolinux/isolinux.bin'
64 bootcat='isolinux/boot.cat'
65 #mkisopts='-r -N -L -d -D -J'
66 mkisopts='-r -J'
67 today="$(date '+%d %b %Y')"
68 mkisofs $mkisopts \
69 -V "$distname $distvers" \
70 -A "$distname created on $today" \
71 -b "$bootimg" \
72 -c "$bootcat" \
73 -no-emul-boot -boot-load-size 4 -boot-info-table \
74 -x lost+found \
75 -x CVS \
76 -o "../smeserver-$distvers".iso \
77 .
78
79 cd ..
80 /usr/lib/anaconda-runtime/implantisomd5 smeserver-$distvers.iso
81 dd if=/dev/zero bs=2048 count=150 >> smeserver-$distvers.iso
82 md5sum smeserver-$distvers.iso > smeserver-$distvers.iso.md5sum
83 ls -lRt > smeserver-$distvers.iso.ls-lRt
84 zsyncmake smeserver-$distvers.iso
85 mv smeserver-$distvers.iso smeserver.iso
86 ln -sf smeserver.iso smeserver-$distvers.iso
87
88 echo "Building SRPMS ISO"
89
90 mkisofs $mkisopts \
91 -V "$distname $distvers SRPMS" \
92 -A "$distname SRPMS created on $today" \
93 -x lost+found \
94 -x CVS \
95 -x cdrom.image \
96 -o "smeserver-$distvers-SRPMS".iso \
97 --graft-points \
98 ./SRPMS=SRPMS \
99 GPL=cdrom.image/GPL \
100 RPM-GPG-KEY=cdrom.image/RPM-GPG-KEY \
101 RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \
102 RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7
103
104 # That's it.
105

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