aragon
Joined: 15 Oct 2007 Posts: 1690 Location: Germany
Posted: Thu 11 Dec 2008, 08:40 Post subject:
dir2iso Subject description: Make an iso from a directory
As i'm often working on the 'opened heart' of my puplet (copying the pup_*.sfs-content to a directory, modify, dir2sfs), i also need a solution like dir2sfs for creating an (bootable) iso again.
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:
#!/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
You copy the content of the base cd to a directory. Exchange the old and the new pup_*.sfs. Than you run dir2iso from the parent-dir with
Code:
dir2iso YOURFOLDER
It will create a new iso named YOURFOLDER.iso in the parent-dir.
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
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum