Merge branch 'master' of git.calculate.ru:/calculate-lib

develop
Самоукин Алексей 13 years ago
commit 6ae82084ba

@ -222,6 +222,8 @@ class fillVars(varsShare):
mapUuidDev = dict(map(lambda x:(path.basename(x),
path.normpath(path.join(uuidpath,
os.readlink(x)))), uuidDevs))
else:
mapUuidDev = {}
if re.match("^UUID=.*$",rootparam):
uuid = rootparam[5:]
if uuid in mapUuidDev:

@ -599,8 +599,8 @@ def isFstabMount(pathname,mapDevUuid={}):
absPath = "swap"
else:
absPath = os.path.abspath(pathname)
if not mapDevUuid:
devuuid = '/dev/disk/by-uuid'
devuuid = '/dev/disk/by-uuid'
if not mapDevUuid and os.path.exists(devuuid):
mapDevUuid.update(
map(lambda x:("UUID=%s"%os.path.basename(x),
os.path.normpath(os.path.join(devuuid,os.readlink(x)))),

Loading…
Cancel
Save