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

Contents of /builds_bin/BuildISO-installer.sh

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


Revision 1.2 - (show annotations) (download) (as text)
Mon Oct 10 03:15:53 2005 UTC (19 years, 1 month ago) by gordonr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Content type: application/x-sh
FILE REMOVED
Filename cleanup

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 # Link to necessary rpms to rebuild installer
46 for rpm in anaconda-10.1.1.19-1.centos4.i386.rpm \
47 anaconda-help-10.1.0-1.centos4.noarch.rpm \
48 anaconda-runtime-10.1.1.19-1.centos4.i386.rpm \
49 atk-1.8.0-2.i386.rpm \
50 audiofile-0.2.6-1.i386.rpm \
51 bogl-0.1.18-4.i386.rpm \
52 bogl-bterm-0.1.18-4.i386.rpm \
53 booty-0.44-1.i386.rpm \
54 busybox-anaconda-1.00.rc1-5.i386.rpm \
55 comps-extras-10.1-1.noarch.rpm \
56 esound-0.2.35-2.i386.rpm \
57 fonts-arabic-1.5-3.noarch.rpm \
58 fonts-bengali-0.1-3.noarch.rpm \
59 fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm \
60 gdk-pixbuf-0.22.0-16.el4.i386.rpm \
61 gnome-python2-2.6.0-3.i386.rpm \
62 gnome-python2-applet-2.6.0-3.i386.rpm \
63 gnome-python2-canvas-2.6.0-3.i386.rpm \
64 gnome-python2-nautilus-2.6.0-3.i386.rpm \
65 gtk2-2.4.13-14.i386.rpm \
66 joe-3.1-6.i386.rpm \
67 libart_lgpl-2.3.16-3.i386.rpm \
68 libgnomecanvas-2.8.0-1.i386.rpm \
69 memtest86+-1.26-2.i386.rpm \
70 open-1.4-21.i386.rpm \
71 pango-1.6.0-9.i386.rpm \
72 parted-1.6.19-1.EL.i386.rpm \
73 pygtk2-2.4.0-1.i386.rpm \
74 pyparted-1.6.8-2.i386.rpm \
75 redhat-artwork-0.120-1.1E.centos4.1.i386.rpm \
76 redhat-logos-1.1.25-1.centos4.3.noarch.rpm \
77 rsh-0.17-25.3.i386.rpm \
78 system-config-date-1.7.15-0.RHEL4.1.noarch.rpm \
79 ttfonts-bn-1.8-1.noarch.rpm \
80 ttfonts-gu-1.8-1.noarch.rpm \
81 ttfonts-hi-1.8-1.noarch.rpm \
82 ttfonts-ja-1.2-36.EL4.0.noarch.rpm \
83 ttfonts-ko-1.0.11-32.2.noarch.rpm \
84 ttfonts-pa-1.8-1.noarch.rpm \
85 ttfonts-ta-1.8-1.noarch.rpm \
86 ttfonts-zh_CN-2.14-6.noarch.rpm \
87 ttfonts-zh_TW-2.11-28.noarch.rpm \
88 urw-fonts-2.2-6.noarch.rpm \
89 vnc-server-4.0-8.1.i386.rpm \
90 xorg-x11-6.8.2-1.EL.13.6.i386.rpm; do
91 ln -fs /mirrors/centos/4.1/os/i386/CentOS/RPMS/$rpm $(pwd)/cdrom.image/CentOS/RPMS/
92 done
93
94 PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
95 --comp dist-4.1 \
96 --pkgorder pkgorder \
97 --release "$distname" \
98 --product "$distname" \
99 --version 7.0 \
100 $(pwd)/cdrom.image/
101
102 # Remove previous linked files
103 find $(pwd)/cdrom.image/CentOS/RPMS/ -type l | xargs rm -f
104
105 # Copy updated isolinux files
106 sudo cp -fR /builds/isolinux/* $(pwd)/cdrom.image/isolinux/
107
108 cd cdrom.image
109
110 yum-arch .
111 createrepo .
112
113 bootimg='isolinux/isolinux.bin'
114 bootcat='isolinux/boot.cat'
115 #mkisopts='-r -N -L -d -D -J'
116 mkisopts='-r -J'
117 today="$(date '+%d %b %Y')"
118 mkisofs $mkisopts \
119 -V "$distname $distvers" \
120 -A "$distname created on $today" \
121 -b "$bootimg" \
122 -c "$bootcat" \
123 -no-emul-boot -boot-load-size 4 -boot-info-table \
124 -x lost+found \
125 -x CVS \
126 -o "../smeserver-$distvers".iso \
127 .
128
129 cd ..
130 /usr/lib/anaconda-runtime/implantisomd5 smeserver-$distvers.iso
131 md5sum smeserver-$distvers.iso > smeserver-$distvers.iso.md5sum
132 ls -lRt > smeserver-$distvers.iso.ls-lRt
133 zsyncmake smeserver-$distvers.iso
134
135 # That's it.

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