commit | 60fcfb5c91063bb71252b7077a363092d8bebe2b | [log] [tgz] |
---|---|---|
author | Bob Ball <bob.ball@citrix.com> | Mon Dec 23 17:23:47 2013 +0000 |
committer | Bob Ball <bob.ball@citrix.com> | Mon Dec 23 17:23:47 2013 +0000 |
tree | 145675e759925f0968b64b6c07946bf4c494bf7a | |
parent | bc22aeb4bc6a37ea02e2c97936c2005614af6e75 [diff] [blame] |
XenAPI: Fix bug with Xen ext4-using guests Ubuntu saucy is using ext4, which means it hits a barrier bug with certain versions of Xen, leading to a read only filesystem. This is bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/824089 Change-Id: I9a72b203d473dc555324d44ad7c240c80dccda15
diff --git a/tools/xen/prepare_guest_template.sh b/tools/xen/prepare_guest_template.sh index 6ea6f63..546ac99 100755 --- a/tools/xen/prepare_guest_template.sh +++ b/tools/xen/prepare_guest_template.sh
@@ -79,3 +79,7 @@ "$GUEST_PASSWORD" "$XS_TOOLS_PATH" "$STACK_USER" \\ > /opt/stack/prepare_guest.log 2>&1 EOF + +# Need to set barrier=0 to avoid a Xen bug +# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/824089 +sed -i -e 's/errors=/barrier=0,errors=/' $STAGING_DIR/etc/fstab