From a2bbd30d46dbb68d6fa51bc8a55eec2f28976963 Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Tue, 4 Aug 2009 13:45:31 +0200 Subject: Fix some typos in rescue mode (#515091) --- rescue.py | 8 ++++---- 1 file 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: -- cgit