|
|
|
@ -2081,11 +2081,10 @@ class VariableOsInstallMbr(LocationHelper, Variable):
|
|
|
|
|
return sorted(set(bootdevices))
|
|
|
|
|
|
|
|
|
|
def choice(self):
|
|
|
|
|
deviceParentMap = dict(self.ZipVars('os_device_dev', 'os_device_name'))
|
|
|
|
|
return map(lambda x: (x, "%s (%s)" % (x,
|
|
|
|
|
deviceParentMap.get(x, _(
|
|
|
|
|
"Unknown")))),
|
|
|
|
|
self.Get('os_device_dev'))
|
|
|
|
|
deviceParentMap = self.ZipVars('os_device_mbr', 'os_device_name')
|
|
|
|
|
return [(mbrdisk, name or _("Unknown"))
|
|
|
|
|
for mbrdisk, name in deviceParentMap
|
|
|
|
|
if mbrdisk]
|
|
|
|
|
|
|
|
|
|
def set(self, value):
|
|
|
|
|
# support off value
|
|
|
|
|