 +            if part.submount_dir:
 +                prefix = '%s' % (part.submount_dir)
 +            msg += '  ROOTFS_DIR%s%s\n' % (suffix.ljust(20), (part.rootfs_dir + prefix))
-
+ 
          msg += '  BOOTIMG_DIR:                  %s\n' % self.bootimg_dir
          msg += '  KERNEL_DIR:                   %s\n' % self.kernel_dir
 diff --git a/scripts/lib/wic/ksparser.py b/scripts/lib/wic/ksparser.py

From d43457bb56bee2c55da9abbcbf9d2a0ef43f0d0c Mon Sep 17 00:00:00 2001
From: Christian Fries <christian.fries123@gmail.com>
Date: Thu, 25 Aug 2016 11:14:08 +0200
Subject: [PATCH] add support to split a rootfs in sub partitions Per default
 wic does not support this. it is nice to have a full rootfs for testing with
 qemu, but for deployment on a productive flash/sd it makes more sense to
 split the rootfs. With this patch it is possible to reach both goals... enjoy

---
 scripts/lib/wic/engine.py        |  1 +
 scripts/lib/wic/imager/direct.py |  5 ++++-
 scripts/lib/wic/ksparser.py      | 16 ++++++++++++++++
 scripts/lib/wic/partition.py     | 16 +++++++++++++++-
 4 files changed, 36 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py
index 76b93e8..12a8a10 100644

+                exclude_list = submount[fs]
+                self.partitions[r-1].exclude_dirs = [s.strip('/') for s in exclude_list]
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index f40d1bc..b0e795c 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -54,6 +54,7 @@ class Partition(object):
