/[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.4 - (hide annotations) (download)
Fri Jun 30 00:18:36 2006 UTC (18 years, 5 months ago) by gordonr
Branch: MAIN
Changes since 1.3: +22 -15 lines
Checkpoint

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 gordonr 1.4 distarch=i386
31 gordonr 1.1
32     for img in product updates
33     do
34     /usr/bin/mkcramfs \
35     $(pwd)/cdrom.image/$img \
36     $(pwd)/cdrom.image/CentOS/base/$img.img
37     done
38    
39     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
40     --withnumbers \
41     $(pwd)/cdrom.image/
42    
43     PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
44     $(pwd)/cdrom.image \
45 gordonr 1.4 $distarch > pkgorder
46 gordonr 1.1
47 slords 1.3 PACKAGES="acl anaconda anaconda-help anaconda-images anaconda-runtime ash
48     atk attr audiofile audit-libs bash beecrypt bitmap-fonts-cjk bogl
49     bogl-bterm booty busybox-anaconda bzip2 bzip2-libs comps-extras
50     convertdb1 coreutils cpio device-mapper dmapi dosfstools dump
51     e2fsprogs elfutils-libelf esound expat fedora-logos findutils
52     fontconfig fonts-arabic fonts-bengali fonts-ISO8859-2 fonts-ISO8859-9
53     fonts-xorg-100dpi fonts-xorg-base fonts-xorg-ISO8859-15-75dpi
54     fonts-xorg-ISO8859-2-75dpi fonts-xorg-ISO8859-9-75dpi fonts-xorg-KOI8-R
55     fonts-xorg-KOI8-R-75dpi freetype ftp gdk-pixbuf glib2 glibc glibc-common
56     gnome-python2 gnome-python2-canvas gpm gtk2 gzip hdparm hwdata iputils
57     jfsutils joe kernel-pcmcia-cs kernel-utils krb5-libs kudzu less libacl
58     libart_lgpl libattr libgcc libgnome libgnomecanvas libjpeg libpng
59     libselinux libsepol libstdc++ libtermcap libxml2 libxml2-python lvm2
60     man mdadm memtest86+ modutils mtools mtr mt-st ncurses net-tools newt
61     open openssh openssh-clients openssl pam pango parted pciutils policy
62     policycoreutils popt prelink procps pygtk2 pyparted python pyxf86config
63     raidtools readline redhat-artwork redhat-logos reiserfs-utils rhpl rpm
64     rpm-libs rpm-python rsh sed selinux-policy-targeted setup slang specspo
65     syslinux system-config-date system-config-keyboard taipeifonts tar
66     tcp_wrappers traceroute ttfonts-bn ttfonts-gu ttfonts-hi ttfonts-ja
67     ttfonts-ko ttfonts-pa ttfonts-ta ttfonts-zh_CN ttfonts-zh_TW tzdata
68     urw-fonts util-linux vnc-server Xconfigurator XFree86 XFree86-100dpi-fonts
69     XFree86-75dpi-fonts XFree86-base-fonts XFree86-ISO8859-15-75dpi-fonts
70     XFree86-ISO8859-2-75dpi-fonts XFree86-ISO8859-9-75dpi-fonts
71     XFree86-KOI8-R XFree86-KOI8-R-75dpi-fonts XFree86-libs XFree86-libs-data
72     XFree86-xfs xfsdump xfsprogs Xft xorg-x11 xorg-x11-100dpi-fonts
73     xorg-x11-base xorg-x11-base-fonts xorg-x11-ISO8859-15-75dpi
74     xorg-x11-ISO8859-15-75dpi-fonts xorg-x11-ISO8859-2-75dpi-fonts
75     xorg-x11-ISO8859-9-75dpi-fonts xorg-x11-KOI8-R xorg-x11-KOI8-R-75dpi-fonts
76     xorg-x11-libs xorg-x11-libs-data xorg-x11-xfs zlib"
77    
78 gordonr 1.4 for PKG in $PACKAGES
79 slords 1.3 do
80 gordonr 1.4 PACKAGEFILES=$(rpm --qf "%{NAME} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n" --nodigest --nosignature -qp /mirrors/centos/4/updates/$distarch/RPMS/$PKG*.rpm | grep "^$PKG " | sed 's/.* //')
81     if [ -n "$PACKAGEFILES" ];
82 slords 1.3 then
83 gordonr 1.4 for PKGFILE in $PACKAGEFILES
84     do
85     if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE ];
86     then
87     ln -sf /mirrors/centos/4/updates/$distarch/RPMS/$PKGFILE $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE
88     fi
89     done
90 slords 1.3 else
91 gordonr 1.4 PACKAGEFILES=$(rpm --qf "%{NAME} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n" --nodigest --nosignature -qp /mirrors/centos/4/os/$distarch/CentOS/RPMS/$PKG*.rpm | grep "^$PKG " | sed 's/.* //')
92     if [ -n "$PACKAGEFILES" ];
93 slords 1.3 then
94 gordonr 1.4 for PKGFILE in $PACKAGEFILES
95     do
96     if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE ];
97     then
98     ln -sf /mirrors/centos/4/os/$distarch/CentOS/RPMS/$PKGFILE $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE
99     fi
100     done
101 slords 1.3 fi
102     fi
103 gordonr 1.1 done
104    
105     PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
106 gordonr 1.4 --comp dist-4.3 \
107 gordonr 1.1 --pkgorder pkgorder \
108     --release "$distname" \
109     --product "$distname" \
110     --version 7.0 \
111     $(pwd)/cdrom.image/
112    
113     # Remove previous linked files
114     find $(pwd)/cdrom.image/CentOS/RPMS/ -type l | xargs rm -f
115    
116     # Copy updated isolinux files
117     sudo cp -fR /builds/isolinux/* $(pwd)/cdrom.image/isolinux/
118    
119 gordonr 1.2 echo "You now need to run /builds/bin/build_ISO as non-root"
120 gordonr 1.1
121     # That's it.

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