From 666b80ee90706c9218e49b63bb148c134c851f6a Mon Sep 17 00:00:00 2001 From: Nikos Skalkotos Date: Mon, 4 Nov 2013 13:05:17 +0200 Subject: [PATCH] The value of DO_SYNC property should be "yes" In order to reenable fsync() the DO_SYNC image property should be defined like this: DO_SYNC=yes --- snf-image-helper/tasks/10FixPartitionTable.in | 3 ++- snf-image-helper/tasks/20FilesystemResizeUnmounted.in | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/snf-image-helper/tasks/10FixPartitionTable.in b/snf-image-helper/tasks/10FixPartitionTable.in index 0aa15c4..e0d5a35 100644 --- a/snf-image-helper/tasks/10FixPartitionTable.in +++ b/snf-image-helper/tasks/10FixPartitionTable.in @@ -58,7 +58,8 @@ if [ "$table_type" == "gpt" ]; then "$SGDISK" --move-second-header "$SNF_IMAGE_DEV" elif [ "$table_type" != "msdos" ]; then log_error "Device: \'${SNF_IMAGE_DEV}' contains unsupported partition " \ - "table type: \`$table_type'. Only msdos & gpt partitions are supported." + "table type: \`$table_type'. Only msdos & gpt partitions are" \ + "supported." fi last_part=$(get_last_partition "$table") diff --git a/snf-image-helper/tasks/20FilesystemResizeUnmounted.in b/snf-image-helper/tasks/20FilesystemResizeUnmounted.in index 38d9360..b68a5ec 100644 --- a/snf-image-helper/tasks/20FilesystemResizeUnmounted.in +++ b/snf-image-helper/tasks/20FilesystemResizeUnmounted.in @@ -41,7 +41,7 @@ if [ -z "$SNF_IMAGE_RESIZE_PART" ]; then exit 0 fi -if [ -n "$SNF_IMAGE_PROPERTY_DO_SYNC" ]; then +if [ "x$SNF_IMAGE_PROPERTY_DO_SYNC" = "xyes" ]; then unset EATMYDATA fi -- 1.7.10.4