summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/3rdparty/pykickstart/commands/partition.py
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-02-04 23:45:02 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-08 08:00:27 +0000
commit602d90d57a55f240b81ad286224c5cc39460e3c1 (patch)
treec921f7a66fce1692281ff2ca6f8d2d68e735250a /scripts/lib/wic/3rdparty/pykickstart/commands/partition.py
parent7c3b9a9a9fe0bcad7d7d3f0af84d6eb8546904f7 (diff)
downloadpoky-602d90d57a55f240b81ad286224c5cc39460e3c1.tar.gz
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. (From OE-Core rev: 3d4da9186016d54b76ad2fa710646de253f0f063) Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com> Tested-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl> Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com> Tested-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/3rdparty/pykickstart/commands/partition.py')
-rw-r--r--scripts/lib/wic/3rdparty/pykickstart/commands/partition.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/3rdparty/pykickstart/commands/partition.py b/scripts/lib/wic/3rdparty/pykickstart/commands/partition.py
index 56b91aa9d9..b564b1a7ab 100644
--- a/scripts/lib/wic/3rdparty/pykickstart/commands/partition.py
+++ b/scripts/lib/wic/3rdparty/pykickstart/commands/partition.py
@@ -78,7 +78,7 @@ class FC3_PartData(BaseData):
78 if self.recommended: 78 if self.recommended:
79 retval += " --recommended" 79 retval += " --recommended"
80 if self.size and self.size != 0: 80 if self.size and self.size != 0:
81 retval += " --size=%s" % self.size 81 retval += " --size=%sk" % self.size
82 if hasattr(self, "start") and self.start != 0: 82 if hasattr(self, "start") and self.start != 0:
83 retval += " --start=%s" % self.start 83 retval += " --start=%s" % self.start
84 84
@@ -216,7 +216,7 @@ class FC3_Partition(KickstartCommand):
216 callback=part_cb, nargs=1, type="string") 216 callback=part_cb, nargs=1, type="string")
217 op.add_option("--recommended", dest="recommended", action="store_true", 217 op.add_option("--recommended", dest="recommended", action="store_true",
218 default=False) 218 default=False)
219 op.add_option("--size", dest="size", action="store", type="int", 219 op.add_option("--size", dest="size", action="store", type="size",
220 nargs=1) 220 nargs=1)
221 op.add_option("--start", dest="start", action="store", type="int", 221 op.add_option("--start", dest="start", action="store", type="int",
222 nargs=1) 222 nargs=1)