From 3d4da9186016d54b76ad2fa710646de253f0f063 Mon Sep 17 00:00:00 2001 From: Alexandre Belloni Date: Wed, 4 Feb 2015 23:45:02 +0100 Subject: wic: use kB for the partitions size Use kB instead of MB for the partition size to get a better granularity. This is needed on some SoC (i.mx, omap) where it is necessary to create partitions as small as 64kB. Keep the backward compatibility by assuming MB when no unit is provided. Signed-off-by: Alexandre Belloni Tested-by: Maciej Borzecki Acked-by: Tom Zanussi Tested-by: Tom Zanussi Signed-off-by: Ross Burton --- scripts/lib/wic/utils/partitionedfs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lib/wic/utils') diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 9df93dca2f..c72bb29b02 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py @@ -92,8 +92,8 @@ class Image: ks_pnum = len(self.partitions) - # Converting MB to sectors for parted - size = size * 1024 * 1024 / self.sector_size + # Converting kB to sectors for parted + size = size * 1024 / self.sector_size # We still need partition for "/" or non-subvolume if mountpoint == "/" or not fsopts: -- cgit v1.2.3