/[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.8 by slords, Mon Jan 22 16:37:24 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    
59  yum-arch .  yum-arch .
60  createrepo .  createrepo .
61    repoview .
62    
63  bootimg='isolinux/isolinux.bin'  bootimg='isolinux/isolinux.bin'
64  bootcat='isolinux/boot.cat'  bootcat='isolinux/boot.cat'
# Line 73  mkisofs $mkisopts \ Line 73  mkisofs $mkisopts \
73          -no-emul-boot -boot-load-size 4 -boot-info-table \          -no-emul-boot -boot-load-size 4 -boot-info-table \
74          -x lost+found \          -x lost+found \
75          -x CVS \          -x CVS \
76          -o "../smeserver-$distvers".iso \          -o "../$disttag-$distvers".iso \
77          .          .
78    
79  cd ..  cd ..
80  /usr/lib/anaconda-runtime/implantisomd5 smeserver-$distvers.iso  /usr/lib/anaconda-runtime/implantisomd5 $disttag-$distvers.iso
81  dd if=/dev/zero bs=2048 count=150 >> smeserver-$distvers.iso  dd if=/dev/zero bs=2048 count=150 >> $disttag-$distvers.iso
82  md5sum smeserver-$distvers.iso > smeserver-$distvers.iso.md5sum  md5sum $disttag-$distvers.iso > $disttag-$distvers.iso.md5sum
83  ls -lRt > smeserver-$distvers.iso.ls-lRt  ls -lRt > $disttag-$distvers.iso.ls-lRt
84  zsyncmake smeserver-$distvers.iso  zsyncmake $disttag-$distvers.iso
85  mv smeserver-$distvers.iso smeserver.iso  mv $disttag-$distvers.iso $disttag.iso
86  ln -sf smeserver.iso smeserver-$distvers.iso  ln -sf $disttag.iso $disttag-$distvers.iso
87    
88  echo "Building SRPMS ISO"  echo "Building SRPMS ISO"
89    
90    rm -f $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
91    
92  mkisofs $mkisopts \  mkisofs $mkisopts \
93          -V "$distname $distvers SRPMS" \          -V "$distname $distvers SRPMS" \
94          -A "$distname SRPMS created on $today" \          -A "$distname SRPMS created on $today" \
95          -x lost+found \          -x lost+found \
96          -x CVS \          -x CVS \
97          -x cdrom.image \          -x cdrom.image \
98          -o "smeserver-$distvers-SRPMS".iso \          -o "$disttag-$distvers-SRPMS".iso \
99          --graft-points \          --graft-points \
100          ./SRPMS=SRPMS \          ./SRPMS=SRPMS \
101          GPL=cdrom.image/GPL \          GPL=cdrom.image/GPL \
# Line 101  mkisofs $mkisopts \ Line 103  mkisofs $mkisopts \
103          RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \          RPM-GPG-KEY-centos4=cdrom.image/RPM-GPG-KEY-centos4 \
104          RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7          RPM-GPG-KEY-SMEServer7=cdrom.image/RPM-GPG-KEY-SMEServer7
105    
106    md5sum $disttag-$distvers-SRPMS.iso > $disttag-$distvers-SRPMS.iso.md5sum
107    zsyncmake $disttag-$distvers-SRPMS.iso
108    mv $disttag-$distvers-SRPMS.iso $disttag-SRPMS.iso
109    ln -sf $disttag-SRPMS.iso $disttag-$distvers-SRPMS.iso
110    
111  # That's it.  # That's it.
112    


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