From: Richard Jones Date: Sat, 25 Apr 2009 21:56:34 +0000 (+0100) Subject: New recipe: iso2tar. X-Git-Tag: 1.0.13~14 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=b787efa8c627b459c876c11e59199df626011123;p=libguestfs.git New recipe: iso2tar. --- diff --git a/recipes/iso2tar.example b/recipes/iso2tar.example new file mode 100644 index 0000000..16cb7da --- /dev/null +++ b/recipes/iso2tar.example @@ -0,0 +1,16 @@ +$ ll -h /tmp/Fedora-11-Beta-i386-netinst.iso +-r--r--r--. 1 rjones rjones 168M 2009-04-25 22:38 /tmp/Fedora-11-Beta-i386-netinst.iso +$ ./iso2tar.sh /tmp/Fedora-11-Beta-i386-netinst.iso /tmp/cd.tar.gz +$ ls -lh /tmp/cd.tar.gz +-rw-rw-r--. 1 rjones rjones 177M 2009-04-25 22:50 /tmp/cd.tar.gz +$ tar ztf /tmp/cd.tar.gz +./ +./EFI/ +./EFI/BOOT/ +./EFI/BOOT/BOOT.conf +./EFI/BOOT/BOOTIA32.conf +./EFI/BOOT/splash.xpm.gz +./EFI/BOOT/TRANS.TBL +./images/ +./images/efiboot.img +[etc] diff --git a/recipes/iso2tar.html b/recipes/iso2tar.html new file mode 100644 index 0000000..b72f3ba --- /dev/null +++ b/recipes/iso2tar.html @@ -0,0 +1,11 @@ +

+Convert a CD-ROM or DVD ISO to a tarball. +

+ +

+Usage is very simple: +

+ +
+iso2tar.sh cd.iso output.tar.gz
+
diff --git a/recipes/iso2tar.sh b/recipes/iso2tar.sh new file mode 100755 index 0000000..7820394 --- /dev/null +++ b/recipes/iso2tar.sh @@ -0,0 +1,3 @@ +#!/bin/sh - + +guestfish -a "$1" -m /dev/sda tgz-out / "$2" diff --git a/recipes/iso2tar.title b/recipes/iso2tar.title new file mode 100644 index 0000000..b8e95ac --- /dev/null +++ b/recipes/iso2tar.title @@ -0,0 +1 @@ +Convert a CD-ROM or DVD ISO to a tarball \ No newline at end of file