/[smeserver]/builds_bin/build_installer
ViewVC logotype

Diff of /builds_bin/build_installer

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

Revision 1.1 by gordonr, Mon Oct 10 03:15:53 2005 UTC Revision 1.6 by slords, Sat Jun 2 05:15:03 2007 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  # Charlie Brady wrote on smeserver-developer:  [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
 # [I'm sure I've said this before, but ...] there's no new anaconda SRPM.  
 # The cdrom image I've been using comes directly from a CentOS one.  
   
 #  
 # What I've done is:  
 #  
 # - add CentOS/base/updates.img, made using mkcramfs from the updates directory  
 # - delete unwanted RPMs  
 # - add wanted RPMs  
 # - replace comps.xml  
 # - add install.cfg and update.cfg  
 # - edit isolinux/isolinux.cfg  
 #  
 # Run this in the a 7.0alphaXX directory, containing cdrom.image  
 # which contains the directory tree:  
   
   
 echo "Checking packages not installed in CentOS workstation group"  
 for package in anaconda anaconda-runtime bogl booty createrepo mkisofs zsync  
 do  
     rpm -q $package || exit "$package must be installed"  
 done  
4    
5  distname='SME Server'  distname='SME Server'
6  distvers=$(basename $(pwd))  distvers=$(basename $(pwd))
7    distarch=$(uname -i)
 for img in product updates  
 do  
         /usr/bin/mkcramfs \  
         $(pwd)/cdrom.image/$img \  
         $(pwd)/cdrom.image/CentOS/base/$img.img  
 done  
8    
9  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \
10          --withnumbers \          --withnumbers \
# Line 40  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a Line 12  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a
12    
13  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \
14          $(pwd)/cdrom.image \          $(pwd)/cdrom.image \
15          i386 > pkgorder          $distarch > pkgorder
16    
17  # Link to necessary rpms to rebuild installer  PACKAGES="glibc glibc-common setup openssl python newt slang libselinux
18  for rpm in anaconda-10.1.1.19-1.centos4.i386.rpm \           libsepol libtermcap zlib ash e2fsprogs util-linux raidtools popt mdadm
19             anaconda-help-10.1.0-1.centos4.noarch.rpm \           procps rpm rpm-libs XFree86 Xconfigurator anaconda tzdata
20             anaconda-runtime-10.1.1.19-1.centos4.i386.rpm \           anaconda-runtime kudzu hwdata bzip2 beecrypt ncurses readline
21             atk-1.8.0-2.i386.rpm \           bzip2-libs dosfstools pciutils reiserfs-utils parted sed
22             audiofile-0.2.6-1.i386.rpm \           busybox-anaconda rpm-python booty hdparm lvm2 beecrypt device-mapper
23             bogl-0.1.18-4.i386.rpm \           rhpl pyxf86config libxml2 libxml2-python glib2 audit-libs
24             bogl-bterm-0.1.18-4.i386.rpm \           elfutils-libelf bogl-bterm bogl krb5-libs convertdb1 jfsutils
25             booty-0.44-1.i386.rpm \           xfsprogs xfsdump dmapi libacl libattr attr acl bogl-devel
26             busybox-anaconda-1.00.rc1-5.i386.rpm \           policy policycoreutils pyparted xorg-x11 selinux-policy-targeted
27             comps-extras-10.1-1.noarch.rpm \           kernel-pcmcia-cs kernel-utils"
28             esound-0.2.35-2.i386.rpm \  
29             fonts-arabic-1.5-3.noarch.rpm \  PACKAGESGR="anaconda XFree86-libs libpng XFree86-75dpi-fonts
30             fonts-bengali-0.1-3.noarch.rpm \             XFree86-ISO8859-2-75dpi-fonts gtk2
31             fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm \             XFree86-ISO8859-9-75dpi-fonts esound audiofile libgnome
32             gdk-pixbuf-0.22.0-16.el4.i386.rpm \             XFree86-100dpi-fonts fonts-ISO8859-2 fonts-ISO8859-9
33             gnome-python2-2.6.0-3.i386.rpm \             XFree86-xfs e2fsprogs coreutils glibc glibc-common
34             gnome-python2-applet-2.6.0-3.i386.rpm \             readline popt specspo util-linux rpm rpm-libs tzdata
35             gnome-python2-canvas-2.6.0-3.i386.rpm \             procps ncurses bash cpio gpm
36             gnome-python2-nautilus-2.6.0-3.i386.rpm \             XFree86 Xconfigurator gnome-python2 pygtk2 gdk-pixbuf
37             gtk2-2.4.13-14.i386.rpm \             XFree86-KOI8-R XFree86-KOI8-R-75dpi-fonts pam
38             joe-3.1-6.i386.rpm \             reiserfs-utils atk pango freetype gnome-python2-canvas
39             libart_lgpl-2.3.16-3.i386.rpm \             libgnomecanvas libart_lgpl libgcc libacl libattr libstdc++ expat
40             libgnomecanvas-2.8.0-1.i386.rpm \             anaconda-images anaconda-help XFree86-base-fonts
41             memtest86+-1.26-2.i386.rpm \             ttfonts-ko taipeifonts XFree86-ISO8859-15-75dpi-fonts rhpl
42             open-1.4-21.i386.rpm \             system-config-keyboard Xft fontconfig redhat-artwork audit-libs
43             pango-1.6.0-9.i386.rpm \             ttfonts-ja ttfonts-zh_TW bitmap-fonts-cjk urw-fonts fonts-arabic
44             parted-1.6.19-1.EL.i386.rpm \             comps-extras XFree86-libs-data convertdb1 fonts-bengali
45             pygtk2-2.4.0-1.i386.rpm \             vnc-server libjpeg tcp_wrappers system-config-date
46             pyparted-1.6.8-2.i386.rpm \             xfsprogs xfsdump dmapi attr acl policy policycoreutils
47             redhat-artwork-0.120-1.1E.centos4.1.i386.rpm \             selinux-policy-targeted ttfonts-zh_CN
48             redhat-logos-1.1.25-1.centos4.3.noarch.rpm \             xorg-x11-libs xorg-x11-ISO8859-2-75dpi-fonts
49             rsh-0.17-25.3.i386.rpm \             xorg-x11-ISO8859-9-75dpi-fonts xorg-x11-100dpi-fonts
50             system-config-date-1.7.15-0.RHEL4.1.noarch.rpm \             xorg-x11-xfs xorg-x11 xorg-x11-KOI8-R xorg-x11-KOI8-R-75dpi-fonts
51             ttfonts-bn-1.8-1.noarch.rpm \             xorg-x11-base-fonts xorg-x11-ISO8859-15-75dpi-fonts
52             ttfonts-gu-1.8-1.noarch.rpm \             fonts-xorg-ISO8859-2-75dpi fonts-xorg-ISO8859-15-75dpi
53             ttfonts-hi-1.8-1.noarch.rpm \             fonts-xorg-ISO8859-9-75dpi fonts-xorg-100dpi
54             ttfonts-ja-1.2-36.EL4.0.noarch.rpm \             fonts-xorg-KOI8-R fonts-xorg-KOI8-R-75dpi fonts-xorg-base
55             ttfonts-ko-1.0.11-32.2.noarch.rpm \             xorg-x11-base xorg-x11-ISO8859-15-75dpi
56             ttfonts-pa-1.8-1.noarch.rpm \             xorg-x11-libs-data xorg-x11-xfs prelink redhat-logos fedora-logos
57             ttfonts-ta-1.8-1.noarch.rpm \             ttfonts-ta ttfonts-bn ttfonts-gu ttfonts-hi ttfonts-pa
58             ttfonts-zh_CN-2.14-6.noarch.rpm \             syslinux memtest86+"
59             ttfonts-zh_TW-2.11-28.noarch.rpm \  
60             urw-fonts-2.2-6.noarch.rpm \  PACKAGESRESCUE="bzip2 bzip2-libs dump
61             vnc-server-4.0-8.1.i386.rpm \                  findutils ftp gzip iputils joe krb5-libs less man
62             xorg-x11-6.8.2-1.EL.13.6.i386.rpm; do                  modutils mtools mt-st mtr net-tools open
63      ln -fs /mirrors/centos/4.1/os/i386/CentOS/RPMS/$rpm $(pwd)/cdrom.image/CentOS/RPMS/                  openssh openssh-clients pciutils rsh traceroute tar"
64    
65    for PKG in $PACKAGES $PACKAGESGR $PACKAGESRESCUE
66    do
67        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/.* //')
68        if [ -n "$PACKAGEFILES" ];
69        then
70            for PKGFILE in $PACKAGEFILES
71            do
72                if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE ];
73                then
74                    ln -sf /mirrors/centos/4/updates/$distarch/RPMS/$PKGFILE $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE
75                fi
76            done
77        else
78            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/.* //')
79            if [ -n "$PACKAGEFILES" ];
80            then
81                for PKGFILE in $PACKAGEFILES
82                do
83                    if [ ! -f $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE ];
84                    then
85                        ln -sf /mirrors/centos/4/os/$distarch/CentOS/RPMS/$PKGFILE $(pwd)/cdrom.image/CentOS/RPMS/$PKGFILE
86                    fi
87                done
88            fi
89        fi
90  done  done
91    
92  PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \  PYTHONPATH=/usr/lib/anaconda/ sudo /usr/lib/anaconda-runtime/buildinstall \
93          --comp dist-4.1 \          --comp dist-4.3 \
94          --pkgorder pkgorder \          --pkgorder pkgorder \
95          --release "$distname" \          --release "$distname" \
96          --product "$distname" \          --product "$distname" \
# Line 103  PYTHONPATH=/usr/lib/anaconda/ sudo /usr/ Line 101  PYTHONPATH=/usr/lib/anaconda/ sudo /usr/
101  find $(pwd)/cdrom.image/CentOS/RPMS/ -type l | xargs rm -f  find $(pwd)/cdrom.image/CentOS/RPMS/ -type l | xargs rm -f
102    
103  # Copy updated isolinux files  # Copy updated isolinux files
104  sudo cp -fR /builds/isolinux/* $(pwd)/cdrom.image/isolinux/  sudo cp -f /builds/isolinux/* $(pwd)/cdrom.image/isolinux/
105    
106  cd cdrom.image  sed -i 's@1,2,3@1@' $(pwd)/cdrom.image/.discinfo
107    
108  /builds/bin/build_IS0  echo "You now need to run /builds/bin/build_ISO as non-root"
109    
110  # That's it.  # That's it.


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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