summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/rescue.py b/rescue.py
index fe2d181a7..9dafec067 100644
--- a/rescue.py
+++ b/rescue.py
@@ -130,15 +130,15 @@ def makeMtab(instPath, fsset):
f.close()
def makeFStab(instPath = ""):
- if os.access("/etc/mtab", os.R_OK):
- f = open("/etc/mtab" %(instPath,), "r")
+ if os.access("/proc/mounts", os.R_OK):
+ f = open("/proc/mounts", "r")
buf = f.read()
f.close()
else:
buf = ""
try:
- f = open(instPath + "/etc/fstab", "w+")
+ f = open(instPath + "/etc/fstab", "a")
if buf:
f.write(buf)
f.close()
@@ -203,7 +203,7 @@ def runShell(screen = None, msg=""):
proc = None
if os.path.exists("/usr/bin/firstaidkit-qs") and os.path.exists("/usr/bin/dialog"):
- proc = subprocess.Popen(["/bin/firstaidkit-qs"])
+ proc = subprocess.Popen(["/usr/bin/firstaidkit-qs"])
proc.wait()
if proc is None or proc.returncode!=0: