X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=examples%2Fguestfs-test.sh;fp=examples%2Fguestfs-test.sh;h=f487f502991932b5c9bdc483c6c52718a998d25f;hb=9cf3beefb865ea3e1a4bbe570d632649540788cc;hp=b45c1f47944947dcafaa5e58b35d24a5dae1bcc5;hpb=14a8be81fc7a87fcdb0dd2ba7cbe2128f01705d9;p=febootstrap.git diff --git a/examples/guestfs-test.sh b/examples/guestfs-test.sh index b45c1f4..f487f50 100755 --- a/examples/guestfs-test.sh +++ b/examples/guestfs-test.sh @@ -13,6 +13,8 @@ # This is a realistic example for 'libguestfs', which contains a # selection of command-line tools, LVM, NTFS and an NFS server. +set -e + if [ $(id -u) -eq 0 ]; then echo "Don't run this script as root. Read instructions in script first." exit 1 @@ -62,6 +64,6 @@ chmod +x init # Now run qemu to boot this guestfs system. qemu-system-$(arch) \ - -m 128 \ + -m 256 \ -kernel vmlinuz -initrd guestfs-initrd.img \ -hda guest-image -boot c