Commit 666b80ee authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

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
parent f3bc7bef
...@@ -58,7 +58,8 @@ if [ "$table_type" == "gpt" ]; then ...@@ -58,7 +58,8 @@ if [ "$table_type" == "gpt" ]; then
"$SGDISK" --move-second-header "$SNF_IMAGE_DEV" "$SGDISK" --move-second-header "$SNF_IMAGE_DEV"
elif [ "$table_type" != "msdos" ]; then elif [ "$table_type" != "msdos" ]; then
log_error "Device: \'${SNF_IMAGE_DEV}' contains unsupported partition " \ 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 fi
last_part=$(get_last_partition "$table") last_part=$(get_last_partition "$table")
......
...@@ -41,7 +41,7 @@ if [ -z "$SNF_IMAGE_RESIZE_PART" ]; then ...@@ -41,7 +41,7 @@ if [ -z "$SNF_IMAGE_RESIZE_PART" ]; then
exit 0 exit 0
fi fi
if [ -n "$SNF_IMAGE_PROPERTY_DO_SYNC" ]; then if [ "x$SNF_IMAGE_PROPERTY_DO_SYNC" = "xyes" ]; then
unset EATMYDATA unset EATMYDATA
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment