From 3e359cf4b67b4e01206cf439f7f9676f3de47e7e Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 27 Jun 2013 06:56:29 +0300 Subject: [PATCH] baseimager: export partition device node Also export the device node name for each partition. This will be helpful when we start generating fstab entries in the installer framework scripts. In MIC environment, the device node name is easily constructed from the disk name. The disk name compes from the KS file from the --ondisk option of the 'part' command. And --ondisk is a mandatory argument. In other installer environments, the disk names may be very different. Change-Id: Idafce950e511f4a7693e17be10e69fbb1e7d00d8 Signed-off-by: Artem Bityutskiy --- mic/imager/baseimager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mic/imager/baseimager.py b/mic/imager/baseimager.py index 6c91af2..c5672f5 100644 --- a/mic/imager/baseimager.py +++ b/mic/imager/baseimager.py @@ -444,6 +444,8 @@ class BaseImageCreator(object): env.update(self._set_part_env(pnum, "BOOTFLAG", p.active)) env.update(self._set_part_env(pnum, "ALIGN", p.align)) env.update(self._set_part_env(pnum, "TYPE_ID", p.part_type)) + env.update(self._set_part_env(pnum, "DEVNODE", + "/dev/%s%d" % (p.disk, pnum + 1))) pnum += 1 # Count of paritions -- 2.7.4