Skip to content
This repository has been archived by the owner on Feb 6, 2019. It is now read-only.

Commit

Permalink
add tools to create iso
Browse files Browse the repository at this point in the history
  • Loading branch information
zocker-160 committed May 30, 2018
1 parent 47a4d14 commit 62d7c2c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/dir2xzm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mksquashfs "$1" "./$1.xzm" -comp xz -b 256K -Xbcj x86 -noappend
32 changes: 32 additions & 0 deletions tools/make_iso.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
# ---------------------------------------------------
# Script to create bootable ISO in Linux
# usage: make_iso.sh [ /tmp/SheepitOS.iso ]
# author: Tomas M. <http://www.linux-live.org>
# updated for Porteus by fanthom <http://www.porteus.org>
# 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 ../.

0 comments on commit 62d7c2c

Please sign in to comment.