-#!/bin/sh -
+#!/bin/bash -
# libguestfs
# Copyright (C) 2009 Red Hat Inc.
#
alloc test.img 10M
run
-sfdiskM /dev/sda ,
+part-disk /dev/sda mbr
mkfs ext2 /dev/sda1
-mount /dev/sda1 /
+mount-options "" /dev/sda1 /
# Upload image, daemon should cancel because the image is too large
# to upload into itself.