summaryrefslogtreecommitdiffstats
path: root/recipes/tar2vm.sh
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-25 11:34:18 +0100
committerRichard Jones <rjones@redhat.com>2009-04-25 11:34:18 +0100
commitb86d7b975629ae099ad9a137ced6f23b17c1531a (patch)
tree32a35026cfc3bf5adbd7f04004d3d543f94072ee /recipes/tar2vm.sh
parentae17137f643c33f0ad8f61dc1abe4800815ddcc3 (diff)
downloadlibguestfs-b86d7b975629ae099ad9a137ced6f23b17c1531a.tar.gz
libguestfs-b86d7b975629ae099ad9a137ced6f23b17c1531a.tar.xz
libguestfs-b86d7b975629ae099ad9a137ced6f23b17c1531a.zip
Added guestfish recipes.
Diffstat (limited to 'recipes/tar2vm.sh')
-rwxr-xr-xrecipes/tar2vm.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/tar2vm.sh b/recipes/tar2vm.sh
new file mode 100755
index 00000000..d71a5ef2
--- /dev/null
+++ b/recipes/tar2vm.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -
+
+guestfish <<EOF
+alloc $2 $3
+run
+sfdisk /dev/sda 0 0 0 ,
+mkfs ext3 /dev/sda1
+mount /dev/sda1 /
+tgz-in $1 /
+umount-all
+EOF