/[smeserver]/builds_bin/build_ISO
ViewVC logotype

Annotation of /builds_bin/build_ISO

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


Revision 1.8 - (hide annotations) (download)
Mon Jan 22 16:37:24 2007 UTC (17 years, 10 months ago) by slords
Branch: MAIN
Changes since 1.7: +0 -2 lines
Update tools

1 gordonr 1.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 gordonr 1.4 disttag='smeserver'
31 gordonr 1.1 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 gordonr 1.4 rm -f $disttag-$distvers.iso smeserver.iso
56 gordonr 1.1
57     cd cdrom.image
58    
59     yum-arch .
60     createrepo .
61 slords 1.7 repoview .
62 gordonr 1.1
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 gordonr 1.4 -o "../$disttag-$distvers".iso \
77 gordonr 1.1 .
78    
79     cd ..
80 gordonr 1.4 /usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso
81     dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso
82     md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum
83     ls -lRt > $disttag-$distvers.iso.ls-lRt
84     zsyncmake $disttag-$distvers.iso
85     mv $disttag-$distvers.iso $disttag.iso
86     ln -sf $disttag.iso $disttag-$distvers.iso
87 gordonr 1.1
88 gordonr 1.3 echo "Building SRPMS ISO"
89    
90 slords 1.6 rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
91    
92 gordonr 1.3 mkisofs $mkisopts \
93     -V "$distname $distvers SRPMS" \
94     -A "$distname SRPMS created on $today" \
95     -x lost+found \
96     -x CVS \
97     -x cdrom.image \
98 gordonr 1.4 -o "$disttag-$distvers-SRPMS".iso \
99 gordonr 1.3 --graft-points \
100     ./SRPMS=SRPMS \
101     GPL=cdrom.image/GPL \
102     RPM-GPG-KEY=cdrom.image/RPM-GPG-KEY \
103     RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \
104     RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7
105    
106 gordonr 1.5 md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum
107     zsyncmake $disttag-$distvers-SRPMS.iso
108     mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso
109     ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
110    
111 gordonr 1.1 # That's it.
112 gordonr 1.3

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