/[smeserver]/builds_bin/BuildISO.sh
ViewVC logotype

Annotation of /builds_bin/BuildISO.sh

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


Revision 1.1 - (hide annotations) (download) (as text)
Thu Sep 15 23:55:09 2005 UTC (18 years, 8 months ago) by gordonr
Branch: MAIN
Branch point for: SME
Content type: application/x-sh
Initial revision

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     distname='SME Server'
28     distvers=$(basename $(pwd))
29    
30     for img in product updates
31     do
32     /usr/bin/mkcramfs \
33     $(pwd)/cdrom.image/$img \
34     $(pwd)/cdrom.image/CentOS/base/$img.img
35     done
36    
37     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
38     --withnumbers \
39     $(pwd)/cdrom.image/
40    
41     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
42     $(pwd)/cdrom.image \
43     i386 > pkgorder
44    
45     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
46     --withnumbers \
47     --fileorder pkgorder \
48     $(pwd)/cdrom.image/
49    
50     rm -f smeserver-$distvers.iso smeserver.iso
51    
52     cd cdrom.image
53    
54     yum-arch .
55     createrepo .
56    
57     bootimg='isolinux/isolinux.bin'
58     bootcat='isolinux/boot.cat'
59     #mkisopts='-r -N -L -d -D -J'
60     mkisopts='-r -J'
61     today="$(date '+%d %b %Y')"
62     mkisofs $mkisopts \
63     -V "$distname $distvers" \
64     -A "$distname created on $today" \
65     -b "$bootimg" \
66     -c "$bootcat" \
67     -no-emul-boot -boot-load-size 4 -boot-info-table \
68     -x lost+found \
69     -x CVS \
70     -o "../smeserver-$distvers".iso \
71     .
72    
73     cd ..
74     /usr/lib/anaconda-runtime/implantisomd5 smeserver-$distvers.iso
75     md5sum smeserver-$distvers.iso > smeserver-$distvers.iso.md5sum
76     ls -lRt > smeserver-$distvers.iso.ls-lRt
77     zsyncmake smeserver-$distvers.iso
78     mv smeserver-$distvers.iso smeserver.iso
79     ln -sf smeserver.iso smeserver-$distvers.iso
80    
81     # That's it.

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