|
|
|
@ -156,13 +156,19 @@ class fillVars(object, cl_base.glob_attr):
|
|
|
|
|
mountLunes = self._runos("""%s mount"""%self.path_env)
|
|
|
|
|
rootType = "hdd"
|
|
|
|
|
if type(mountLunes) == types.ListType:
|
|
|
|
|
flagCD = False
|
|
|
|
|
for line in mountLunes:
|
|
|
|
|
if "/dev/loop0 on / type" in line:
|
|
|
|
|
rootType = "ram"
|
|
|
|
|
break
|
|
|
|
|
if rootType == "ram" and os.path.exists("/mnt/livecd"):
|
|
|
|
|
rootType = "livecd"
|
|
|
|
|
return rootType
|
|
|
|
|
elif "/dev/loop0 on /newroot/mnt/livecd type" in line:
|
|
|
|
|
rootType = "ram"
|
|
|
|
|
flagCD = True
|
|
|
|
|
break
|
|
|
|
|
if rootType == "ram":
|
|
|
|
|
if os.path.exists("/mnt/livecd") or flagCD:
|
|
|
|
|
rootType = "livecd"
|
|
|
|
|
return rootType
|
|
|
|
|
rootDev = self.Get("os_root_dev")
|
|
|
|
|
if rootType != "ram" and rootDev:
|
|
|
|
|
slpRootDev = rootDev.split("/dev/")
|
|
|
|
|