summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2009-08-04 13:45:31 +0200
committerMartin Sivak <msivak@redhat.com>2009-08-04 13:45:31 +0200
commita2bbd30d46dbb68d6fa51bc8a55eec2f28976963 (patch)
tree3a50c0468f86373d48182e4945876762fdec9879 /rescue.py
parentdc8c30f746c0d8b794917fe6d45f5130e47d1427 (diff)
downloadanaconda-a2bbd30d46dbb68d6fa51bc8a55eec2f28976963.tar.gz
anaconda-a2bbd30d46dbb68d6fa51bc8a55eec2f28976963.tar.xz
anaconda-a2bbd30d46dbb68d6fa51bc8a55eec2f28976963.zip
Fix some typos in rescue mode (#515091)
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: