/[smeserver]/builds_bin/build_ISO
ViewVC logotype

Diff of /builds_bin/build_ISO

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

Revision 1.3 by gordonr, Fri Jun 30 22:58:51 2006 UTC Revision 1.9 by slords, Sat Apr 14 21:21:22 2007 UTC
# Line 27  done Line 27  done
27  [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)  [ -d cdrom.image ] || (echo "No cdrom.image directory?"; exit 1)
28    
29  distname='SME Server'  distname='SME Server'
30    disttag='smeserver'
31  distvers=$(basename $(pwd))  distvers=$(basename $(pwd))
32    
33  [ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda  [ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda
34    
 chmod -R a+rX cdrom.image  
   
35  for img in product updates  for img in product updates
36  do  do
37          /usr/bin/mkcramfs \          /usr/bin/mkcramfs \
# Line 53  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a Line 52  PYTHONPATH=/usr/lib/anaconda/ /usr/lib/a
52          --fileorder pkgorder \          --fileorder pkgorder \
53          $(pwd)/cdrom.image/          $(pwd)/cdrom.image/
54    
55  rm -f smeserver-$distvers.iso smeserver.iso  rm -f $disttag-$distvers.iso smeserver.iso
56    
57  cd cdrom.image  cd cdrom.image
58    
 yum-arch .  
59  createrepo .  createrepo .
60    repoview .
61    
62  bootimg='isolinux/isolinux.bin'  bootimg='isolinux/isolinux.bin'
63  bootcat='isolinux/boot.cat'  bootcat='isolinux/boot.cat'
# Line 73  mkisofs $mkisopts \ Line 72  mkisofs $mkisopts \
72          -no-emul-boot -boot-load-size 4 -boot-info-table \          -no-emul-boot -boot-load-size 4 -boot-info-table \
73          -x lost+found \          -x lost+found \
74          -x CVS \          -x CVS \
75          -o "../smeserver-$distvers".iso \          -o "../$disttag-$distvers".iso \
76          .          .
77    
78  cd ..  cd ..
79  /usr/lib/anaconda-runtime/implantisomd5 smeserver-$distvers.iso  /usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso
80  dd if=/dev/zero bs=2048 count=150 >> smeserver-$distvers.iso  dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso
81  md5sum smeserver-$distvers.iso > smeserver-$distvers.iso.md5sum  md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum
82  ls -lRt > smeserver-$distvers.iso.ls-lRt  ls -lRt > $disttag-$distvers.iso.ls-lRt
83  zsyncmake smeserver-$distvers.iso  zsyncmake $disttag-$distvers.iso
84  mv smeserver-$distvers.iso smeserver.iso  mv $disttag-$distvers.iso $disttag.iso
85  ln -sf smeserver.iso smeserver-$distvers.iso  ln -sf $disttag.iso $disttag-$distvers.iso
86    
87  echo "Building SRPMS ISO"  echo "Building SRPMS ISO"
88    
89    rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
90    
91  mkisofs $mkisopts \  mkisofs $mkisopts \
92          -V "$distname $distvers SRPMS" \          -V "$distname $distvers SRPMS" \
93          -A "$distname SRPMS created on $today" \          -A "$distname SRPMS created on $today" \
94          -x lost+found \          -x lost+found \
95          -x CVS \          -x CVS \
96          -x cdrom.image \          -x cdrom.image \
97          -o "smeserver-$distvers-SRPMS".iso \          -o "$disttag-$distvers-SRPMS".iso \
98          --graft-points \          --graft-points \
99          ./SRPMS=SRPMS \          ./SRPMS=SRPMS \
100          GPL=cdrom.image/GPL \          GPL=cdrom.image/GPL \
# Line 101  mkisofs $mkisopts \ Line 102  mkisofs $mkisopts \
102          RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \          RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \
103          RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7          RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7
104    
105    md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum
106    zsyncmake $disttag-$distvers-SRPMS.iso
107    mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso
108    ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
109    
110  # That's it.  # That's it.
111    


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