-#!/bin/sh -
+#!/bin/bash -
# libguestfs
# Copyright (C) 2009 Red Hat Inc.
#
set -e
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 ,
-mkfs ext2 /dev/sda1
-mount /dev/sda1 /
+../fish/guestfish -N fs -m /dev/sda1 <<EOF
mkdir /dev
-command /ignore-this-error
unmount-all