/[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.43 by jpp, Sun Jun 14 05:54:37 2020 UTC Revision 1.47 by jpp, Sun Apr 28 18:53:34 2024 UTC
# Line 16  then Line 16  then
16      exit 1      exit 1
17  fi  fi
18    
19    sudo chmod g+w $(pwd)/$distarch/{images,repodata,repoview,LiveOS}
20  for img in product updates EFI  for img in product updates EFI
21  do  do
22      if [ "$distrel" == "10" -a "$img" = "updates" ]      if [ -d "$(pwd)/$distarch/$img" -a "$img" = "product" ]
23      then      then
24          echo "SME10 do nothing with updates.img, yet"          echo "building product.img"
25            pushd $(pwd)/$distarch/$img
26            find . | cpio -c -o | gzip -9cv > ../images/$img.img;
27            popd
28            sudo chmod 664 $(pwd)/$distarch/images/$img.img
29    #       echo "SME10 do nothing with updates.img, yet"
30      elif [ -d "$(pwd)/$distarch/$img" -a "$img" = "EFI" ]      elif [ -d "$(pwd)/$distarch/$img" -a "$img" = "EFI" ]
31      then      then
32          echo "building efiboot.img"          echo "building efiboot.img"
33          # the content of the img should be /EFI/BOOT* and not /BOOT/*, so we need to copy the content in a temp dir          # the content of the img should be /EFI/BOOT* and not /BOOT/*, so we need to copy the content in a temp dir
34          sudo rm -rf /tmp/efiboot          mkdir -p /tmp/{loop,remaster}
35          mkdir -p /tmp/efiboot          sudo mount -o loop  $(pwd)/$distarch/images/efiboot.img /tmp/loop
36          cp -a $(pwd)/$distarch/$img /tmp/efiboot          sudo cp -a $(pwd)/$distarch/EFI/BOOT/grub.cfg /tmp/loop/EFI/BOOT/
37          /sbin/mksquashfs \          sudo umount /tmp/loop
38              /tmp/efiboot \  #        sudo rm -rf /tmp/efiboot
39              $(pwd)/$distarch/images/efiboot.img \  #        mkdir -p /tmp/efiboot
40              -all-root -no-fragments -noappend  #        cp -a $(pwd)/$distarch/$img /tmp/efiboot
41          sudo chmod 664 $(pwd)/$distarch/images/efiboot.img  #        /sbin/mksquashfs \
42          sudo rm -rf /tmp/efiboot  #            /tmp/efiboot \
43    #            $(pwd)/$distarch/images/efiboot.img \
44    #            -all-root -no-fragments -noappend
45    #        sudo chmod 664 $(pwd)/$distarch/images/efiboot.img
46    #        sudo rm -rf /tmp/efiboot
47      elif [ -d "$(pwd)/$distarch/$img" ]      elif [ -d "$(pwd)/$distarch/$img" ]
48      then      then
49          echo "building $img.img...."          echo "building $img.img...."
# Line 68  today="$(date '+%d %b %Y')" Line 78  today="$(date '+%d %b %Y')"
78  if [ "$distrel" == "10" ]  if [ "$distrel" == "10" ]
79  then  then
80  #Caton  #Caton
 #xorriso -as mkisofs -isohybrid-mbr isolinux/isohdpfx.bin \  
 #-c isolinux/boot.cat -b isolinux/isolinux.bin  
 #-no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot \  
 #-e images/efiboot.img -no-emul-boot \  
 #-isohybrid-gpt-basdat \  
 #-o ../custom-SME10.iso .  
 # in fact it is :  
81  #xorriso -as mkisofs \  #xorriso -as mkisofs \
82  #-o ../custom-SME10.iso \  #-o ../custom-SME10.iso \
83  #-V "SME Server" \  #-V "SME Server" \
# Line 91  then Line 94  then
94  #-isohybrid-gpt-basdat \  #-isohybrid-gpt-basdat \
95  #-R -J -v -T .  #-R -J -v -T .
96    
97  /usr/bin/xorriso -as mkisofs -isohybrid-mbr  /usr/share/syslinux/isohdpfx.bin \  /usr/bin/xorriso -as mkisofs  -isohybrid-mbr  /usr/share/syslinux/isohdpfx.bin \
98      $mkisopts -joliet-long \      $mkisopts  -joliet-long \
99      -V "$distname" \      -V "$distname" \
100      -A "$distname" \      -A "$distname" \
101      -volset "$distname" \      -volset "$distname" \
# Line 141  then Line 144  then
144    
145          echo "building efiboot.img for netinstall"          echo "building efiboot.img for netinstall"
146          # the content of the img should be /EFI/BOOT* and not /BOOT/*, so we need to copy the content in a temp dir          # the content of the img should be /EFI/BOOT* and not /BOOT/*, so we need to copy the content in a temp dir
147          sudo rm -rf /tmp/remaster/efiboot  #        sudo rm -rf /tmp/remaster/efiboot
148          mkdir -p /tmp/remaster/efiboot          sudo mount -o loop  /tmp/remaster/efiboot.img /tmp/loop
149          cp -a /tmp/remaster/EFI $(pwd)/$distarch/efiboot          sudo cp -a /tmp/remaster/EFI/BOOT/grub.cfg /tmp/loop/EFI/BOOT/
150          /sbin/mksquashfs \          sudo umount /tmp/loop
151              /tmp/remaster/efiboot \  #        mkdir -p /tmp/remaster/efiboot
152              /tmp/remaster/images/efiboot.img \  #        cp -a /tmp/remaster/EFI $(pwd)/$distarch/efiboot
153              -all-root -no-fragments -noappend  #        /sbin/mksquashfs \
154    #            /tmp/remaster/efiboot \
155    #            /tmp/remaster/images/efiboot.img \
156    #            -all-root -no-fragments -noappend
157          sudo chmod 664 /tmp/remaster/images/efiboot.img          sudo chmod 664 /tmp/remaster/images/efiboot.img
158          sudo rm -rf /tmp/remaster/efiboot  #        sudo rm -rf /tmp/remaster/efiboot
159          #rebuild iso for netinstall          #rebuild iso for netinstall
160    
161          /usr/bin/xorriso -as mkisofs -isohybrid-mbr  /usr/share/syslinux/isohdpfx.bin \  #       /usr/bin/xorriso -as mkisofs -isohybrid-mbr  /usr/share/syslinux/isohdpfx.bin \
162           /usr/bin/xorriso -as mkisofs \
163          $mkisopts -joliet-long \          $mkisopts -joliet-long \
164          -V "$distname" \          -V "$distname" \
165          -A "$distname" \          -A "$distname" \
# Line 202  zsyncmake -u $disttag-$distvers-$distarc Line 209  zsyncmake -u $disttag-$distvers-$distarc
209  mv ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso ../iso/$distrel/$distarch/$disttag-$distarch.iso  mv ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso ../iso/$distrel/$distarch/$disttag-$distarch.iso
210  ln -sf $disttag-$distarch.iso ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso  ln -sf $disttag-$distarch.iso ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso
211  # for netinstall  # for netinstall
212  md5sum ../iso/$distrel/$distarch/$disttag-$distvers-$distarch-netinstall.iso | sed 's,\.\..*/,,' > ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso.md5sum  md5sum ../iso/$distrel/$distarch/$disttag-$distvers-$distarch-netinstall.iso | sed 's,\.\..*/,,' > ../iso/$distrel/$distarch/$disttag-$distvers-$distarch-netinstall.iso.md5sum
213  sha1sum ../iso/$distrel/$distarch/$disttag-$distvers-$distarch-netinstall.iso | sed 's,\.\..*/,,' > ../iso/$distrel/$distarch/$disttag-$distvers-$distarch.iso.sha1sum  sha1sum ../iso/$distrel/$distarch/$disttag-$distvers-$distarch-netinstall.iso | sed 's,\.\..*/,,' > ../iso/$distrel/$distarch/$disttag-$distvers-$distarch-netinstall.iso.sha1sum
214    
215    
216  rsync -a --delete --delete-excluded \  rsync -a --delete --delete-excluded \


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