Isomaster does not work in all cases, so dir2iso is my personal solution. It combines dir2sfs and the mkisofs-command from the remaster-script.
Code: Select all
#!/bin/bash
t=`echo "$1" | sed "s/\/$//"`
z=`echo "$1" | sed "s/\/$//"`
if [ ! -d "$t" ];then
echo "error: no valid folder specified!"
exit 0
fi
if [ -f "$z.iso" ];then
echo "$z.iso already exists, refusing to overwrite it!"
exit 0
fi
mkisofs -D -R -o "$z.iso" -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table "$t"
md5sum "$z.iso" > "$z.iso-md5.txt"
sync
echo
echo
s=`du -m "$z.iso" | sed "s/\s.*//"`
echo "created: $z.iso ( $s MB )"
echo "created: $z.iso-md5.txt"
echo
echo "...byebye..."
echo
Code: Select all
dir2iso YOURFOLDER
Possible improvements (here i need help):
- The script does not test if these files exist in YOURFOLDER:
--- boot.cat
--- boot.msg
--- initrd.gz
--- isolinux.bin
--- isolinux.cfg
--- vmlinuz
--- pup_*.sfs
My thanks to Barry K. and MU.
cheers
aragon