Изменена проверка достпности записи в /run

develop
parent fa37b9bbe3
commit d6851726f2

@ -2423,10 +2423,11 @@ class VariableClInstallType(Variable):
for dn in ("/proc", "/sys", "/dev", "/dev/pts"):
if not isMount(dn):
raise VariableError(_("%s is not mounted") %dn )
check_fn = '/run/.calculate-rw-check-%d' % os.getpid()
try:
with open('/run/.calculate-rw-check','w') as f:
with open(check_fn,'w') as f:
pass
os.unlink("/run/.calculate-rw-check")
os.unlink(check_fn)
except (IOError,OSError) as e:
raise VariableError(_("Failed to create data in /run"))

Loading…
Cancel
Save