SHARE
TWEET

make_ISO_Fm_slitaz-rootfs - TazPup64 Build Kit

s243a Mar 12th, 2019 (edited) 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. #written by mistfire, modified by s243a
  3. #Build TazPuppy either online or local
  4.  
  5.  
  6. if [ -z "$curdir" ]; then
  7.     curdir=`pwd`
  8.     prefix="/64"
  9.     source $curdir/make-tazpup_functions.sh
  10. fi
  11. clean_cache_and_logs
  12. ls -1 $curdir/slitaz-rootfs/pkgs > $curdir/un_used_pkgs.txt
  13. rm  $curdir/slitaz-rootfs/pkgs
  14.  
  15.   if [ -f $curdir/custom-tazpup.iso ]; then
  16.     echo "Deleting custom-tazpup.iso..."
  17.     rm -f $curdir/custom-tazpup.iso
  18.   fi
  19.   if [ -d $curdir/tazpup-preiso ]; then
  20.     echo "Deleting tazpup-preiso..."
  21.     rm -rf $curdir/tazpup-preiso
  22.   fi
  23. prepare_working_folders
  24.  
  25.   #if [ -d $curdir/kernel-modules ]; then
  26.   #  echo "Deleting kernel-modules..."
  27.   #  rm -rf $curdir/kernel-modules
  28.   #fi
  29.  
  30. select_re_extract_kernal_Modules
  31.  
  32.  
  33. . $curdir/tazpup-core-files/puppy/etc/DISTRO_SPECS
  34.  
  35. #exit
  36.  
  37. echo "Creating tazpup zdrv sfs..."
  38.  
  39. mksquashfs "$curdir/kernel-modules" "$curdir/tazpup-preiso/$DISTRO_ZDRVSFS" -comp xz -Xbcj x86 -b 1M -Xdict-size 100%
  40.  
  41. echo "Creating tazpup sfs..."
  42.  
  43. mksquashfs "$curdir/slitaz-rootfs$prefix" "$curdir/tazpup-preiso/$DISTRO_PUPPYSFS" -comp xz -Xbcj x86 -b 1M -Xdict-size 100%
  44.  
  45. echo "Creating live cd..."
  46.  
  47. #mv -f $curdir/$DISTRO_PUPPYSFS $curdir/tazpup-preiso/
  48. cp -rf $curdir/tazpup-livecd-files/* $curdir/tazpup-preiso/
  49.  
  50. BOOTPARM=""
  51. [ -f $curdir/tazpup-preiso/grldr ] && BOOTPARM="-b grldr"
  52. [ -f $curdir/tazpup-preiso/isolinux.bin ] && BOOTPARM="-b isolinux.bin -c boot.cat"
  53.  
  54. if [ -f $curdir/tazpup-preiso/boot.catalog ]; then
  55. BOOTPARM="-b isolinux.bin -c boot.catalog"
  56. else
  57. BOOTPARM="-b isolinux.bin -c boot.cat"
  58. fi
  59.  
  60. if [ -f $curdir/tazpup-preiso/efiboot.img ]; then
  61. efi1="true"
  62. efiimg1="efiboot.img"
  63. elif [ -f $curdir/tazpup-preiso/efi.img ]; then
  64. efi1="true"
  65. efiimg1="efi.img"
  66. else
  67. efi1="false"
  68. fi
  69.  
  70. VOLI="tazpup-preiso"
  71.  
  72. cd $curdir
  73.  
  74. if [ -f $curdir/custom-tazpup.iso ]; then
  75. rm -f $curdir/custom-tazpup.iso
  76. fi
  77. if [ -f $curdir/custom-tazpup.iso.md5 ]; then
  78. rm -f $curdir/custom-tazpup.iso.md5
  79. fi
  80.  
  81.  
  82.   if [ "$efi1" == "true" ]; then
  83.   #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
  84.   echo "UEFI enabled"
  85.   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/
  86.   isohybrid --uefi $curdir/custom-tazpup.iso
  87.   else
  88.   mkisofs -D -R -J -o $curdir/custom-tazpup.iso $BOOTPARM -no-emul-boot -boot-load-size 4 -boot-info-table $curdir/tazpup-preiso/  
  89.   fi
  90.  
  91. MD5=`md5sum $curdir/custom-tazpup.iso | cut -f 1 -d ' '`
  92.  
  93. echo "$MD5" > $curdir/custom-tazpup.iso.md5
  94.  
  95. echo "MD5 Checksum: ${MD5}"
  96. echo ""
  97. echo "Process complete!"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top