/[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.11 - (show annotations) (download)
Tue May 22 17:52:44 2007 UTC (17 years, 6 months ago) by slords
Branch: MAIN
Changes since 1.10: +2 -0 lines
Tools update

1 #!/bin/sh
2
3 [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
4
5 distname='SME Server'
6 disttag='smeserver'
7 distvers=$(basename $(pwd))
8
9 [ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda
10
11 for img in product updates
12 do
13 /usr/bin/mkcramfs \
14 $(pwd)/cdrom.image/$img \
15 $(pwd)/cdrom.image/CentOS/base/$img.img
16 done
17
18 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
19 --withnumbers \
20 $(pwd)/cdrom.image/
21
22 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
23 $(pwd)/cdrom.image \
24 $(uname -i) > pkgorder
25
26 PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
27 --withnumbers \
28 --fileorder pkgorder \
29 $(pwd)/cdrom.image/
30
31 rm -f $disttag-$distvers.iso smeserver.iso
32
33 cd cdrom.image
34
35 createrepo .
36 sync; rm -rf .olddata
37 repoview .
38 sync; rm -rf .repodata
39
40 bootimg='isolinux/isolinux.bin'
41 bootcat='isolinux/boot.cat'
42 #mkisopts='-r -N -L -d -D -J'
43 mkisopts='-r -J'
44 today="$(date '+%d %b %Y')"
45 mkisofs $mkisopts \
46 -V "$distname $distvers" \
47 -A "$distname created on $today" \
48 -b "$bootimg" \
49 -c "$bootcat" \
50 -no-emul-boot -boot-load-size 4 -boot-info-table \
51 -x lost+found \
52 -x CVS \
53 -o "../$disttag-$distvers".iso \
54 .
55
56 cd ..
57 /usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso
58 dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso
59 md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum
60 ls -lRt > $disttag-$distvers.iso.ls-lRt
61 zsyncmake $disttag-$distvers.iso
62 mv $disttag-$distvers.iso $disttag.iso
63 ln -sf $disttag.iso $disttag-$distvers.iso
64
65 [ -d SRPMS ] || (echo "No SRPMS directory?"; exit 1)
66
67 echo "Building SRPMS ISO"
68
69 rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
70
71 mkisofs $mkisopts \
72 -V "$distname $distvers SRPMS" \
73 -A "$distname SRPMS created on $today" \
74 -x lost+found \
75 -x CVS \
76 -x cdrom.image \
77 -o "$disttag-$distvers-SRPMS".iso \
78 --graft-points \
79 ./SRPMS=SRPMS \
80 GPL=cdrom.image/GPL \
81 RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer
82
83 md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum
84 zsyncmake $disttag-$distvers-SRPMS.iso
85 mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso
86 ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
87
88 # That's it.
89

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