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