From: Artem Bityutskiy Date: Fri, 27 Sep 2013 07:40:34 +0000 (+0300) Subject: partitionedfs: save the mapper device path X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65258850077d1569fbcb351ee84de75a8951f706;p=platform%2Fupstream%2Fmic.git 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 --- 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