/[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.4 by gordonr, Fri Jun 30 00:18:36 2006 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 \  
         xorg-x11-font-utils netpbm-progs netpbm  
 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=i386  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 44  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a Line 14  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a
14          $(pwd)/cdrom.image \          $(pwd)/cdrom.image \
15          $distarch > pkgorder          $distarch > pkgorder
16    
17  PACKAGES="acl anaconda anaconda-help anaconda-images anaconda-runtime ash  PACKAGES="glibc glibc-common setup openssl python newt slang libselinux
18            atk attr audiofile audit-libs bash beecrypt bitmap-fonts-cjk bogl           libsepol libtermcap zlib ash e2fsprogs util-linux raidtools popt mdadm
19            bogl-bterm booty busybox-anaconda bzip2 bzip2-libs comps-extras           procps rpm rpm-libs XFree86 Xconfigurator anaconda tzdata
20            convertdb1 coreutils cpio device-mapper dmapi dosfstools dump           anaconda-runtime kudzu hwdata bzip2 beecrypt ncurses readline
21            e2fsprogs elfutils-libelf esound expat fedora-logos findutils           bzip2-libs dosfstools pciutils reiserfs-utils parted sed
22            fontconfig fonts-arabic fonts-bengali fonts-ISO8859-2 fonts-ISO8859-9           busybox-anaconda rpm-python booty hdparm lvm2 beecrypt device-mapper
23            fonts-xorg-100dpi fonts-xorg-base fonts-xorg-ISO8859-15-75dpi           rhpl pyxf86config libxml2 libxml2-python glib2 audit-libs
24            fonts-xorg-ISO8859-2-75dpi fonts-xorg-ISO8859-9-75dpi fonts-xorg-KOI8-R           elfutils-libelf bogl-bterm bogl krb5-libs convertdb1 jfsutils
25            fonts-xorg-KOI8-R-75dpi freetype ftp gdk-pixbuf glib2 glibc glibc-common           xfsprogs xfsdump dmapi libacl libattr attr acl bogl-devel
26            gnome-python2 gnome-python2-canvas gpm gtk2 gzip hdparm hwdata iputils           policy policycoreutils pyparted xorg-x11 selinux-policy-targeted
27            jfsutils joe kernel-pcmcia-cs kernel-utils krb5-libs kudzu less libacl           kernel-pcmcia-cs kernel-utils"
28            libart_lgpl libattr libgcc libgnome libgnomecanvas libjpeg libpng  
29            libselinux libsepol libstdc++ libtermcap libxml2 libxml2-python lvm2  PACKAGESGR="anaconda XFree86-libs libpng XFree86-75dpi-fonts
30            man mdadm memtest86+ modutils mtools mtr mt-st ncurses net-tools newt             XFree86-ISO8859-2-75dpi-fonts gtk2
31            open openssh openssh-clients openssl pam pango parted pciutils policy             XFree86-ISO8859-9-75dpi-fonts esound audiofile libgnome
32            policycoreutils popt prelink procps pygtk2 pyparted python pyxf86config             XFree86-100dpi-fonts fonts-ISO8859-2 fonts-ISO8859-9
33            raidtools readline redhat-artwork redhat-logos reiserfs-utils rhpl rpm             XFree86-xfs e2fsprogs coreutils glibc glibc-common
34            rpm-libs rpm-python rsh sed selinux-policy-targeted setup slang specspo             readline popt specspo util-linux rpm rpm-libs tzdata
35            syslinux system-config-date system-config-keyboard taipeifonts tar             procps ncurses bash cpio gpm
36            tcp_wrappers traceroute ttfonts-bn ttfonts-gu ttfonts-hi ttfonts-ja             XFree86 Xconfigurator gnome-python2 pygtk2 gdk-pixbuf
37            ttfonts-ko ttfonts-pa ttfonts-ta ttfonts-zh_CN ttfonts-zh_TW tzdata             XFree86-KOI8-R XFree86-KOI8-R-75dpi-fonts pam
38            urw-fonts util-linux vnc-server Xconfigurator XFree86 XFree86-100dpi-fonts             reiserfs-utils atk pango freetype gnome-python2-canvas
39            XFree86-75dpi-fonts XFree86-base-fonts XFree86-ISO8859-15-75dpi-fonts             libgnomecanvas libart_lgpl libgcc libacl libattr libstdc++ expat
40            XFree86-ISO8859-2-75dpi-fonts XFree86-ISO8859-9-75dpi-fonts             anaconda-images anaconda-help XFree86-base-fonts
41            XFree86-KOI8-R XFree86-KOI8-R-75dpi-fonts XFree86-libs XFree86-libs-data             ttfonts-ko taipeifonts XFree86-ISO8859-15-75dpi-fonts rhpl
42            XFree86-xfs xfsdump xfsprogs Xft xorg-x11 xorg-x11-100dpi-fonts             system-config-keyboard Xft fontconfig redhat-artwork audit-libs
43            xorg-x11-base xorg-x11-base-fonts xorg-x11-ISO8859-15-75dpi             ttfonts-ja ttfonts-zh_TW bitmap-fonts-cjk urw-fonts fonts-arabic
44            xorg-x11-ISO8859-15-75dpi-fonts xorg-x11-ISO8859-2-75dpi-fonts             comps-extras XFree86-libs-data convertdb1 fonts-bengali
45            xorg-x11-ISO8859-9-75dpi-fonts xorg-x11-KOI8-R xorg-x11-KOI8-R-75dpi-fonts             vnc-server libjpeg tcp_wrappers system-config-date
46            xorg-x11-libs xorg-x11-libs-data xorg-x11-xfs zlib"             xfsprogs xfsdump dmapi attr acl policy policycoreutils
47               selinux-policy-targeted ttfonts-zh_CN
48               xorg-x11-libs xorg-x11-ISO8859-2-75dpi-fonts
49               xorg-x11-ISO8859-9-75dpi-fonts xorg-x11-100dpi-fonts
50               xorg-x11-xfs xorg-x11 xorg-x11-KOI8-R xorg-x11-KOI8-R-75dpi-fonts
51               xorg-x11-base-fonts xorg-x11-ISO8859-15-75dpi-fonts
52               fonts-xorg-ISO8859-2-75dpi fonts-xorg-ISO8859-15-75dpi
53               fonts-xorg-ISO8859-9-75dpi fonts-xorg-100dpi
54               fonts-xorg-KOI8-R fonts-xorg-KOI8-R-75dpi fonts-xorg-base
55               xorg-x11-base xorg-x11-ISO8859-15-75dpi
56               xorg-x11-libs-data xorg-x11-xfs prelink redhat-logos fedora-logos
57               ttfonts-ta ttfonts-bn ttfonts-gu ttfonts-hi ttfonts-pa
58               syslinux memtest86+"
59    
60    PACKAGESRESCUE="bzip2 bzip2-libs dump
61                    findutils ftp gzip iputils joe krb5-libs less man
62                    modutils mtools mt-st mtr net-tools open
63                    openssh openssh-clients pciutils rsh traceroute tar"
64    
65  for PKG in $PACKAGES  for PKG in $PACKAGES $PACKAGESGR $PACKAGESRESCUE
66  do  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/.* //')      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" ];      if [ -n "$PACKAGEFILES" ];
# Line 114  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    sed -i 's@1,2,3@1@' $(pwd)/cdrom.image/.discinfo
107    
108  echo "You now need to run /builds/bin/build_ISO as non-root"  echo "You now need to run /builds/bin/build_ISO as non-root"
109    


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