diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-02-04 23:45:02 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-07 18:52:45 +0000 |
commit | 3d4da9186016d54b76ad2fa710646de253f0f063 (patch) | |
tree | aec1c90fd97d03402878acc5f877eb2bd20fa9f6 /scripts/lib/wic/3rdparty/pykickstart/commands | |
parent | d7ef9e49b1c687279f6eb2c7abc32ff915714177 (diff) | |
download | openembedded-core-3d4da9186016d54b76ad2fa710646de253f0f063.tar.gz openembedded-core-3d4da9186016d54b76ad2fa710646de253f0f063.tar.bz2 openembedded-core-3d4da9186016d54b76ad2fa710646de253f0f063.zip |
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 <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>
Diffstat (limited to 'scripts/lib/wic/3rdparty/pykickstart/commands')
-rw-r--r-- | scripts/lib/wic/3rdparty/pykickstart/commands/partition.py | 4 |
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): if self.recommended: retval += " --recommended" if self.size and self.size != 0: - retval += " --size=%s" % self.size + retval += " --size=%sk" % self.size if hasattr(self, "start") and self.start != 0: retval += " --start=%s" % self.start @@ -216,7 +216,7 @@ class FC3_Partition(KickstartCommand): callback=part_cb, nargs=1, type="string") op.add_option("--recommended", dest="recommended", action="store_true", default=False) - op.add_option("--size", dest="size", action="store", type="int", + op.add_option("--size", dest="size", action="store", type="size", nargs=1) op.add_option("--start", dest="start", action="store", type="int", nargs=1) |