|
|
|
@ -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:
|
|
|
|
|