Package: bootstrap-vz / 0.9.0-1

0002-Correct-volume-size-calculation-to-fix-broken-volume.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Balint Reczey <balint@balintreczey.hu>
Date: Mon, 4 Aug 2014 12:16:23 +0200
Subject: Correct volume size calculation to fix broken volume partitioning
 using loopback

Fixes #127.
---
 bootstrapvz/common/fs/loopbackvolume.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bootstrapvz/common/fs/loopbackvolume.py b/bootstrapvz/common/fs/loopbackvolume.py
index 8f6f7cd..519454a 100644
--- a/bootstrapvz/common/fs/loopbackvolume.py
+++ b/bootstrapvz/common/fs/loopbackvolume.py
@@ -11,7 +11,7 @@ class LoopbackVolume(Volume):
 
 	def _before_create(self, e):
 		self.image_path = e.image_path
-		vol_size = str(self.size.get_qty_in('MiB')) + 'M'
+		vol_size = str(self.size.get_qty_in('B') + 4096)
 		log_check_call(['qemu-img', 'create', '-f', 'raw', self.image_path, vol_size])
 
 	def _before_attach(self, e):