]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Include mount point into image report
authorEd Bartosh <ed.bartosh@linux.intel.com>
Sat, 27 Jun 2015 07:54:46 +0000 (10:54 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jul 2015 22:01:20 +0000 (23:01 +0100)
Wic doesn't show any information for the partition if label is not set.
Fixed this by adding mount point to the report.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
scripts/lib/wic/imager/direct.py

index 2ea7e4e04a7e8fddf9a94f4d2d5c84a26f76a20e..58a9e9d9067d13cb1cf890760c9e1335431dab79 100644 (file)
@@ -351,7 +351,7 @@ class DirectImageCreator(BaseImageCreator):
             if p.mountpoint == '/':
                 str = ':'
             else:
-                str = '["%s"]:' % p.label
+                str = '["%s"]:' % (p.mountpoint or p.label)
             msg += '  ROOTFS_DIR%s%s\n' % (str.ljust(20), p.get_rootfs())
 
         msg += '  BOOTIMG_DIR:                  %s\n' % self.bootimg_dir