/[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.10 - (hide annotations) (download)
Sat May 19 21:55:09 2007 UTC (17 years, 6 months ago) by slords
Branch: MAIN
Changes since 1.9: +4 -28 lines
Tools update

1 gordonr 1.1 #!/bin/sh
2    
3     [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
4    
5     distname='SME Server'
6 gordonr 1.4 disttag='smeserver'
7 gordonr 1.1 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 slords 1.10 $(uname -i) > pkgorder
25 gordonr 1.1
26     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
27     --withnumbers \
28     --fileorder pkgorder \
29     $(pwd)/cdrom.image/
30    
31 gordonr 1.4 rm -f $disttag-$distvers.iso smeserver.iso
32 gordonr 1.1
33     cd cdrom.image
34    
35     createrepo .
36 slords 1.7 repoview .
37 gordonr 1.1
38     bootimg='isolinux/isolinux.bin'
39     bootcat='isolinux/boot.cat'
40     #mkisopts='-r -N -L -d -D -J'
41     mkisopts='-r -J'
42     today="$(date '+%d %b %Y')"
43     mkisofs $mkisopts \
44     -V "$distname $distvers" \
45     -A "$distname created on $today" \
46     -b "$bootimg" \
47     -c "$bootcat" \
48     -no-emul-boot -boot-load-size 4 -boot-info-table \
49     -x lost+found \
50     -x CVS \
51 gordonr 1.4 -o "../$disttag-$distvers".iso \
52 gordonr 1.1 .
53    
54     cd ..
55 gordonr 1.4 /usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso
56     dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso
57     md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum
58     ls -lRt > $disttag-$distvers.iso.ls-lRt
59     zsyncmake $disttag-$distvers.iso
60     mv $disttag-$distvers.iso $disttag.iso
61     ln -sf $disttag.iso $disttag-$distvers.iso
62 gordonr 1.1
63 slords 1.10 [ -d SRPMS ] || (echo "No SRPMS directory?"; exit 1)
64    
65 gordonr 1.3 echo "Building SRPMS ISO"
66    
67 slords 1.6 rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
68    
69 gordonr 1.3 mkisofs $mkisopts \
70     -V "$distname $distvers SRPMS" \
71     -A "$distname SRPMS created on $today" \
72     -x lost+found \
73     -x CVS \
74     -x cdrom.image \
75 gordonr 1.4 -o "$disttag-$distvers-SRPMS".iso \
76 gordonr 1.3 --graft-points \
77     ./SRPMS=SRPMS \
78     GPL=cdrom.image/GPL \
79 slords 1.10 RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer
80 gordonr 1.3
81 gordonr 1.5 md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum
82     zsyncmake $disttag-$distvers-SRPMS.iso
83     mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso
84     ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
85    
86 gordonr 1.1 # That's it.
87 gordonr 1.3

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