summaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-25 22:56:34 +0100
committerRichard Jones <rjones@redhat.com>2009-04-25 22:56:34 +0100
commitb787efa8c627b459c876c11e59199df626011123 (patch)
tree9ce58cea803a6a1deecb65c48688c6c5234d781a /recipes
parent96124562bbadc7c4bbf0a4ceca39b838dbe47ed7 (diff)
downloadlibguestfs-b787efa8c627b459c876c11e59199df626011123.tar.gz
libguestfs-b787efa8c627b459c876c11e59199df626011123.tar.xz
libguestfs-b787efa8c627b459c876c11e59199df626011123.zip
New recipe: iso2tar.
Diffstat (limited to 'recipes')
-rw-r--r--recipes/iso2tar.example16
-rw-r--r--recipes/iso2tar.html11
-rwxr-xr-xrecipes/iso2tar.sh3
-rw-r--r--recipes/iso2tar.title1
4 files changed, 31 insertions, 0 deletions
diff --git a/recipes/iso2tar.example b/recipes/iso2tar.example
new file mode 100644
index 00000000..16cb7dac
--- /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 00000000..b72f3ba9
--- /dev/null
+++ b/recipes/iso2tar.html
@@ -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
index 00000000..78203941
--- /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 00000000..b8e95ac9
--- /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