summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-07-25 19:04:34 +0000
committerErik Troan <ewt@redhat.com>2000-07-25 19:04:34 +0000
commitd48a2f3ce01094c5cbfc461e74e87110fc00d226 (patch)
treefbff13d15ae85e8a938c43b1a14baec6fed88036 /todo.py
parent5d95c102169bf3cf566fa291c417147b148f4b91 (diff)
downloadanaconda-d48a2f3ce01094c5cbfc461e74e87110fc00d226.tar.gz
anaconda-d48a2f3ce01094c5cbfc461e74e87110fc00d226.tar.xz
anaconda-d48a2f3ce01094c5cbfc461e74e87110fc00d226.zip
clear out /etc/mtab on upgrade
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/todo.py b/todo.py
index 650322171..c0a5d6ada 100644
--- a/todo.py
+++ b/todo.py
@@ -507,7 +507,7 @@ class ToDo:
"--device",
"/dev/" + self.fdDevice,
kernelTag[1:] ],
- stdout = None, stderr = None,
+ stdout = None, stderr = None,
searchPath = 1, root = self.instPath)
w.pop()
if rc:
@@ -1441,6 +1441,11 @@ class ToDo:
# flag this so we only do it once.
self.dbpath = None
+ # An old mtab can cause confusion (esp if loop devices are
+ # in it)
+ f = open(self.instPath + "/etc/mtab", "w+")
+ f.close()
+
self.method.systemMounted (self.fstab, self.instPath, self.hdList.selected())
if not self.installSystem: