git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added guestfish recipes.
[libguestfs.git]
/
recipes
/
tar2vm.sh
diff --git a/recipes/tar2vm.sh
b/recipes/tar2vm.sh
new file mode 100755
(executable)
index 0000000..
d71a5ef
--- /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