]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: print partition alignment when available
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 4 Feb 2015 22:48:38 +0000 (23:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 7 Feb 2015 18:52:45 +0000 (18:52 +0000)
When printing a partition, the --align parameter was shown when present
but not its value.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/kickstart/custom_commands/micpartition.py

index 43d04f12945c0c27f467ad656ca5206ffb84e050..d6be008cebf2a4776b4d8be67d5fe6acd8b08195 100644 (file)
@@ -32,7 +32,7 @@ class Mic_PartData(FC4_PartData):
         retval = FC4_PartData._getArgsAsStr(self)
 
         if self.align:
-            retval += " --align"
+            retval += " --align=%d" % self.align
         if self.extopts:
             retval += " --extoptions=%s" % self.extopts
         if self.part_type: