From 65258850077d1569fbcb351ee84de75a8951f706 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 27 Sep 2013 10:40:34 +0300 Subject: [PATCH] partitionedfs: save the mapper device path For some legacy reasons related to grub, which we do not use, MIC creates /dev/loopXpY files which are symlinks to the real /dev/mapper/loopXpY device node files. Then MIC saves the /dev/loopXpY path in the internal data structure, and drps the mapper device path. This patch makes MIC also save the /dev/mapper/loopXpY in the internal data structures for firther use. We'll use it later for creating a copy of device nodes in the target image. Thede device nodes will be later used by installer framework plugins. Change-Id: Ia928669ffd40a8fbda472d2f9d9890053aa94f67 Signed-off-by: Artem Bityutskiy --- mic/utils/partitionedfs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mic/utils/partitionedfs.py b/mic/utils/partitionedfs.py index d745bb9..e676a8a 100644 --- a/mic/utils/partitionedfs.py +++ b/mic/utils/partitionedfs.py @@ -438,6 +438,7 @@ class PartitionedMount(Mount): msger.debug("Dev %s: %s -> %s" % (newdev, loopdev, mapperdev)) pnum = d['partitions'][i] self.partitions[pnum]['device'] = loopdev + self.partitions[pnum]['mapper_device'] = mapperdev # grub's install wants partitions to be named # to match their parent device + partition num -- 2.7.4