rm -f test1.img
dd if=/dev/zero of=test1.img bs=1024k count=10
-export LIBGUESTFS_PATH=../appliance
-
../fish/guestfish -a test1.img <<EOF
launch
+sfdisk /dev/sda 0 0 0 ,
+mkfs ext2 /dev/sda1
+mount /dev/sda1 /
ll /../dev/console
ll /../dev/full
ll /../dev/mapper/