From 3a495e86fdf2f7dce77522c55b8e6f823c1568d4 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 15 Feb 2013 17:20:59 +0200 Subject: [PATCH] partitionedfs: do not try to mount partitions without a mountpoint With this patch MIC finally allows partitions wothout any mount point. Change-Id: I110a90754428c2f216d27287526701ea0cdc5b0c Signed-off-by: Artem Bityutskiy --- mic/utils/partitionedfs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mic/utils/partitionedfs.py b/mic/utils/partitionedfs.py index e84008e..1da975d 100644 --- a/mic/utils/partitionedfs.py +++ b/mic/utils/partitionedfs.py @@ -456,8 +456,9 @@ class PartitionedMount(Mount): def __calculate_mountorder(self): msger.debug("Calculating mount order") for p in self.partitions: - self.mountOrder.append(p['mountpoint']) - self.unmountOrder.append(p['mountpoint']) + if p['mountpoint']: + self.mountOrder.append(p['mountpoint']) + self.unmountOrder.append(p['mountpoint']) self.mountOrder.sort() self.unmountOrder.sort() -- 2.7.4