Fix detect nfs boot.

develop
Mike Hiretsky 13 years ago
parent 428d968e1e
commit b1e61da6ec

@ -189,7 +189,7 @@ class fillVars(varsShare):
# check root for /dev/sd view
if re.match("^\/dev\/[a-z]+.*$", rootparam):
return getUdevDeviceInfo(
name=rootparam.strip()).get('DEVNAME','')
name=rootparam.strip()).get('DEVNAME',rootparam)
# check root set by uuid
if re.match("^UUID=.*$",rootparam):
uuid = rootparam[5:].strip("\"'")
@ -225,7 +225,7 @@ class fillVars(varsShare):
return (path.normpath(os.path.join(basedir,targetfile)),linkfile)
rootDev = self.Get("os_root_dev")
if rootDev:
if "/dev/ram" in rootDev:
if "/dev/ram" in rootDev or "/dev/nfs" in rootDev:
return "livecd"
idDict = dict(map(link2pair,
filter(lambda x:path.islink(x),

Loading…
Cancel
Save