-#!/bin/sh -
+#!/bin/bash -
# libguestfs
# Copyright (C) 2009 Red Hat Inc.
#
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
run
-sfdisk /dev/sda 0 0 0 ,
+part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
mount /dev/sda1 /
mkdir /dev