Verify that the resolvdir is present

This commit is contained in:
Thomas S Hatch 2013-11-18 17:50:39 -07:00
parent 5b4962ea7b
commit 0a50b5a519

View file

@ -171,6 +171,8 @@ def _check_resolv(mpt):
replace = False
if os.path.islink(resolv):
resolv = os.path.realpath(resolv)
if not os.path.isdir(os.path.dirname(resolv)):
os.makedirs(os.path.dirname(resolv))
if not os.path.isfile(resolv):
replace = True
if not replace: