|
|
|
@ -858,8 +858,11 @@ class cl_install(color_print, SignalInterrupt):
|
|
|
|
|
clGet('os_linux_ver'))
|
|
|
|
|
mbrDevice = self.clVars.Get('os_install_mbr')
|
|
|
|
|
if not mbrDevice in ("","off"):
|
|
|
|
|
pathVendor = "/sys/block/%s/device/vendor"%mbrDevice
|
|
|
|
|
pathModel = "/sys/block/%s/device/model"%mbrDevice
|
|
|
|
|
syspath = getUdevDeviceInfo(name=mbrDevice).get('DEVPATH','')
|
|
|
|
|
if not syspath.startswith('/sys'):
|
|
|
|
|
syspath = pathJoin('/sys',syspath)
|
|
|
|
|
pathVendor = "%s/device/vendor"%syspath
|
|
|
|
|
pathModel = "%s/device/model"%syspath
|
|
|
|
|
if path.exists(pathVendor) and path.exists(pathModel):
|
|
|
|
|
addonMbrInfo = " (%s %s)"% \
|
|
|
|
|
(open(pathVendor,'r').read().strip(),
|
|
|
|
|