summaryrefslogtreecommitdiffstats
path: root/recipes/tar2vm.sh
blob: d71a5ef2d704a7dffd5f86351ec6eb1192e86087 (plain)
1
2
3
4
5
6
7
8
9
10
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