|
|
|
@ -2414,6 +2414,17 @@ class VariableClInstallType(Variable):
|
|
|
|
|
def choice(self):
|
|
|
|
|
return ["", "flash", "hdd"]
|
|
|
|
|
|
|
|
|
|
def check(self, value):
|
|
|
|
|
for dn in ("/proc", "/sys", "/dev", "/dev/pts"):
|
|
|
|
|
if not isMount(dn):
|
|
|
|
|
raise VariableError(_("%s is not mounted") %dn )
|
|
|
|
|
try:
|
|
|
|
|
with open('/run/.calculate-rw-check','w') as f:
|
|
|
|
|
pass
|
|
|
|
|
os.unlink("/run/.calculate-rw-check")
|
|
|
|
|
except (IOError,OSError) as e:
|
|
|
|
|
raise VariableError(_("Failed to create data in /run"))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class VariableOsInstallDiskSingle(Variable):
|
|
|
|
|
"""
|
|
|
|
|