From 605af5262385ef9743066562b1682b888a6cb00b Mon Sep 17 00:00:00 2001
From: "Cody A.W. Somerville" <cody.somerville@canonical.com>
Date: Thu, 12 Nov 2009 06:43:35 +0100
Subject: Fixing intermittent truncating of filesystem.

---
 functions/losetup.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/functions/losetup.sh b/functions/losetup.sh
index 51f5426..1b1f61f 100755
--- a/functions/losetup.sh
+++ b/functions/losetup.sh
@@ -44,9 +44,9 @@ Calculate_partition_size ()
 			PERCENT="5"
 			;;
 		*)
-			PERCENT="2"
+			PERCENT="3"
 			;;
 	esac
 
-	echo $(expr ${ORIGINAL_SIZE} + ${ORIGINAL_SIZE} \* ${PERCENT} / 100)
+	echo $(expr ${ORIGINAL_SIZE} + ${ORIGINAL_SIZE} \* ${PERCENT} / 100 + 1)
 }
-- 
cgit v1.0