/[smeserver]/builds_bin/build_installer
ViewVC logotype

Annotation of /builds_bin/build_installer

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


Revision 1.2 - (hide annotations) (download)
Thu Nov 10 19:43:51 2005 UTC (18 years, 5 months ago) by gordonr
Branch: MAIN
Changes since 1.1: +3 -4 lines
Add more installer build requires

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 gordonr 1.2 for package in anaconda anaconda-runtime bogl booty createrepo mkisofs zsync \
23     xorg-x11-font-utils netpbm-progs netpbm
24 gordonr 1.1 do
25     rpm -q $package || exit "$package must be installed"
26     done
27    
28     distname='SME Server'
29     distvers=$(basename $(pwd))
30    
31     for img in product updates
32     do
33     /usr/bin/mkcramfs \
34     $(pwd)/cdrom.image/$img \
35     $(pwd)/cdrom.image/CentOS/base/$img.img
36     done
37    
38     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
39     --withnumbers \
40     $(pwd)/cdrom.image/
41    
42     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
43     $(pwd)/cdrom.image \
44     i386 > pkgorder
45    
46     # Link to necessary rpms to rebuild installer
47     for rpm in anaconda-10.1.1.19-1.centos4.i386.rpm \
48     anaconda-help-10.1.0-1.centos4.noarch.rpm \
49     anaconda-runtime-10.1.1.19-1.centos4.i386.rpm \
50     atk-1.8.0-2.i386.rpm \
51     audiofile-0.2.6-1.i386.rpm \
52     bogl-0.1.18-4.i386.rpm \
53     bogl-bterm-0.1.18-4.i386.rpm \
54     booty-0.44-1.i386.rpm \
55     busybox-anaconda-1.00.rc1-5.i386.rpm \
56     comps-extras-10.1-1.noarch.rpm \
57     esound-0.2.35-2.i386.rpm \
58     fonts-arabic-1.5-3.noarch.rpm \
59     fonts-bengali-0.1-3.noarch.rpm \
60     fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm \
61     gdk-pixbuf-0.22.0-16.el4.i386.rpm \
62     gnome-python2-2.6.0-3.i386.rpm \
63     gnome-python2-applet-2.6.0-3.i386.rpm \
64     gnome-python2-canvas-2.6.0-3.i386.rpm \
65     gnome-python2-nautilus-2.6.0-3.i386.rpm \
66     gtk2-2.4.13-14.i386.rpm \
67     joe-3.1-6.i386.rpm \
68     libart_lgpl-2.3.16-3.i386.rpm \
69     libgnomecanvas-2.8.0-1.i386.rpm \
70     memtest86+-1.26-2.i386.rpm \
71     open-1.4-21.i386.rpm \
72     pango-1.6.0-9.i386.rpm \
73     parted-1.6.19-1.EL.i386.rpm \
74     pygtk2-2.4.0-1.i386.rpm \
75     pyparted-1.6.8-2.i386.rpm \
76     redhat-artwork-0.120-1.1E.centos4.1.i386.rpm \
77     redhat-logos-1.1.25-1.centos4.3.noarch.rpm \
78     rsh-0.17-25.3.i386.rpm \
79     system-config-date-1.7.15-0.RHEL4.1.noarch.rpm \
80     ttfonts-bn-1.8-1.noarch.rpm \
81     ttfonts-gu-1.8-1.noarch.rpm \
82     ttfonts-hi-1.8-1.noarch.rpm \
83     ttfonts-ja-1.2-36.EL4.0.noarch.rpm \
84     ttfonts-ko-1.0.11-32.2.noarch.rpm \
85     ttfonts-pa-1.8-1.noarch.rpm \
86     ttfonts-ta-1.8-1.noarch.rpm \
87     ttfonts-zh_CN-2.14-6.noarch.rpm \
88     ttfonts-zh_TW-2.11-28.noarch.rpm \
89     urw-fonts-2.2-6.noarch.rpm \
90     vnc-server-4.0-8.1.i386.rpm \
91     xorg-x11-6.8.2-1.EL.13.6.i386.rpm; do
92     ln -fs /mirrors/centos/4.1/os/i386/CentOS/RPMS/$rpm $(pwd)/cdrom.image/CentOS/RPMS/
93     done
94    
95     PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
96     --comp dist-4.1 \
97     --pkgorder pkgorder \
98     --release "$distname" \
99     --product "$distname" \
100     --version 7.0 \
101     $(pwd)/cdrom.image/
102    
103     # Remove previous linked files
104     find $(pwd)/cdrom.image/CentOS/RPMS/ -type l | xargs rm -f
105    
106     # Copy updated isolinux files
107     sudo cp -fR /builds/isolinux/* $(pwd)/cdrom.image/isolinux/
108    
109 gordonr 1.2 echo "You now need to run /builds/bin/build_ISO as non-root"
110 gordonr 1.1
111     # That's it.

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