diff --git a/tools/dir2xzm.sh b/tools/dir2xzm.sh new file mode 100755 index 0000000..50bbd59 --- /dev/null +++ b/tools/dir2xzm.sh @@ -0,0 +1 @@ +mksquashfs "$1" "./$1.xzm" -comp xz -b 256K -Xbcj x86 -noappend diff --git a/tools/make_iso.sh b/tools/make_iso.sh new file mode 100755 index 0000000..0ae491a --- /dev/null +++ b/tools/make_iso.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# --------------------------------------------------- +# Script to create bootable ISO in Linux +# usage: make_iso.sh [ /tmp/SheepitOS.iso ] +# author: Tomas M. +# updated for Porteus by fanthom +# updated for SheepitOS by zocker_160 +# --------------------------------------------------- + +if [ "$1" = "--help" -o "$1" = "-h" ]; then + echo "This script will create bootable ISO from files in curent directory." + echo "Current directory must be writable." + echo "example: $0 /mnt/sda5/SheepitOS.iso" + exit +fi + +CDLABEL="SheepitOS" +ISONAME=$(readlink -f "$1") + +cd $(dirname $0) + +if [ "$ISONAME" = "" ]; then + #SUGGEST=$(readlink -f ../../$(basename $(pwd)).iso) + SUGGEST="SheepitOS.iso" + echo -ne "Target ISO file name [ Hit enter for $SUGGEST ]: " + read ISONAME + if [ "$ISONAME" = "" ]; then ISONAME="$SUGGEST"; fi +fi + +mkisofs -o "$ISONAME" -v -l -J -joliet-long -R -D -A "$CDLABEL" \ +-V "$CDLABEL" -no-emul-boot -boot-info-table -boot-load-size 4 \ +-b boot/syslinux/isolinux.bin -c boot/syslinux/isolinux.boot ../.