From 3b427133640d881c9cd7ec14f91eb325c73afaaa Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Tue, 19 Jul 2011 12:57:54 +0400 Subject: [PATCH] Fix detect install root type. --- pym/cl_fill_install.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pym/cl_fill_install.py b/pym/cl_fill_install.py index abfd94f..457ec6e 100644 --- a/pym/cl_fill_install.py +++ b/pym/cl_fill_install.py @@ -1038,10 +1038,12 @@ class fillVars(object, glob_attr): def get_os_install_root_type(self): """Type of device for install""" rootdev = self.Get('os_install_root_dev') + devicetype = getPartitionDevice( + getUdevDeviceInfo(name=rootdev).get('DEVPATH','')) devicetype = map(lambda x: x[1], - filter(lambda x:x[0] in rootdev, - zip(self.Get('os_device_dev'), - self.Get('os_device_type')))) + filter(lambda x:x[0] == devicetype, + zip(self.Get('os_device_dev'), + self.Get('os_device_type')))) if devicetype: return devicetype[0] else: