Advertisement
s243a

LN#418 to 471 of make-tazpup.sh

Jul 5th, 2018
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.75 KB | None | 0 0
  1. # Line number 418 of make-tazpup.sh
  2. echo "Creating live cd..."
  3.  
  4. mv -f $curdir/$DISTRO_PUPPYSFS $curdir/tazpup-preiso/
  5. cp -rf $curdir/tazpup-livecd-files/* $curdir/tazpup-preiso/
  6.  
  7.  
  8. BOOTPARM=""
  9. [ -f $curdir/tazpup-preiso/grldr ] && BOOTPARM="-b grldr"
  10. [ -f $curdir/tazpup-preiso/isolinux.bin ] && BOOTPARM="-b isolinux.bin -c boot.cat"
  11.  
  12. if [ -f $curdir/tazpup-preiso/boot.catalog ]; then
  13. BOOTPARM="-b isolinux.bin -c boot.catalog"
  14. else
  15. BOOTPARM="-b isolinux.bin -c boot.cat"
  16. fi
  17.  
  18. if [ -f $curdir/tazpup-preiso/efiboot.img ]; then
  19. efi1="true"
  20. efiimg1="efiboot.img"
  21. elif [ -f $curdir/tazpup-preiso/efi.img ]; then
  22. efi1="true"
  23. efiimg1="efi.img"
  24. else
  25. efi1="false"
  26. fi
  27.  
  28. VOLI="tazpup-preiso"
  29.  
  30. cd $curdir
  31.  
  32. if [ -f $curdir/custom-tazpup.iso ]; then
  33. rm -f $curdir/custom-tazpup.iso
  34. fi
  35. if [ -f $curdir/custom-tazpup.iso.md5 ]; then
  36. rm -f $curdir/custom-tazpup.iso.md5
  37. fi
  38.  
  39.  
  40.   if [ "$efi1" == "true" ]; then
  41.   #rxvt -bg blue -fg white -title "$m_01 (with UEFI)" -e mkisofs -U -A $VOLI -J -joliet-long -r -v -T -o $curdir/custom-tazpup.iso $BOOTPARM -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e efi.img -no-emul-boot $curdir/tazpup-preiso
  42.   echo "UEFI enabled"
  43.   mkisofs -D -R -J -o $curdir/custom-tazpup.iso $BOOTPARM -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -eltorito-platform 0xEF -eltorito-boot $efiimg1 -no-emul-boot $curdir/tazpup-preiso/
  44.   isohybrid --uefi $curdir/custom-tazpup.iso
  45.   else
  46.   mkisofs -D -R -J -o $curdir/custom-tazpup.iso $BOOTPARM -no-emul-boot -boot-load-size 4 -boot-info-table $curdir/tazpup-preiso/  
  47.   fi
  48.  
  49. MD5=`md5sum $curdir/custom-tazpup.iso | cut -f 1 -d ' '`
  50.  
  51. echo "$MD5" > $curdir/custom-tazpup.iso.md5
  52.  
  53. echo "MD5 Checksum: ${MD5}"
  54. echo ""
  55. echo "Process complete!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement