|
|
|
@ -106,11 +106,16 @@ class VariableOsFormatUse(ReadonlyVariable):
|
|
|
|
|
'type': "bool",
|
|
|
|
|
'value': "off"}
|
|
|
|
|
|
|
|
|
|
def checkFunc(self,fs):
|
|
|
|
|
if fs == "btrfs" and self.Get('os_root_type') == 'livecd':
|
|
|
|
|
return "no"
|
|
|
|
|
if "format" in FileSystemManager.supportFS[fs] and \
|
|
|
|
|
path.exists(FileSystemManager.supportFS[fs]["format"]):
|
|
|
|
|
return "yes"
|
|
|
|
|
return "no"
|
|
|
|
|
|
|
|
|
|
def get(self):
|
|
|
|
|
return map(lambda x:"yes"
|
|
|
|
|
if "format" in FileSystemManager.supportFS[x] and \
|
|
|
|
|
path.exists(FileSystemManager.supportFS[x]["format"])
|
|
|
|
|
else "no", self.Get('os_format_type'))
|
|
|
|
|
return map(self.checkFunc, self.Get('os_format_type'))
|
|
|
|
|
|
|
|
|
|
class VariableClMigrateRootPwd(UserHelper,Variable):
|
|
|
|
|
"""
|
|
|
|
|