New recipe: iso2tar.
authorRichard Jones <rjones@redhat.com>
Sat, 25 Apr 2009 21:56:34 +0000 (22:56 +0100)
committerRichard Jones <rjones@redhat.com>
Sat, 25 Apr 2009 21:56:34 +0000 (22:56 +0100)
recipes/iso2tar.example [new file with mode: 0644]
recipes/iso2tar.html [new file with mode: 0644]
recipes/iso2tar.sh [new file with mode: 0755]
recipes/iso2tar.title [new file with mode: 0644]

diff --git a/recipes/iso2tar.example b/recipes/iso2tar.example
new file mode 100644 (file)
index 0000000..16cb7da
--- /dev/null
@@ -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 (file)
index 0000000..b72f3ba
--- /dev/null
@@ -0,0 +1,11 @@
+<p>
+Convert a CD-ROM or DVD ISO to a tarball.
+</p>
+
+<p>
+Usage is very simple:
+</p>
+
+<pre>
+iso2tar.sh cd.iso output.tar.gz
+</pre>
diff --git a/recipes/iso2tar.sh b/recipes/iso2tar.sh
new file mode 100755 (executable)
index 0000000..7820394
--- /dev/null
@@ -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 (file)
index 0000000..b8e95ac
--- /dev/null
@@ -0,0 +1 @@
+Convert a CD-ROM or DVD ISO to a tarball
\ No newline at end of file