summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rescue.py2
-rw-r--r--todo.py3
-rw-r--r--upgrade.py3
3 files changed, 5 insertions, 3 deletions
diff --git a/rescue.py b/rescue.py
index 4a03c2bff..8e9f7ed10 100644
--- a/rescue.py
+++ b/rescue.py
@@ -76,7 +76,7 @@ def runRescue(serial):
rootmounted = 0
if root:
try:
- upgrade.mountRootPartition(root, fstab, '/mnt/sysimage',
+ upgrade.mountRootPartition(intf, root, fstab, '/mnt/sysimage',
allowDirty = 1)
ButtonChoiceWindow(screen, _("Rescue"),
_("Your system has been mounted under /mnt/sysimage.\n\n"
diff --git a/todo.py b/todo.py
index 77492c201..80725f932 100644
--- a/todo.py
+++ b/todo.py
@@ -1076,7 +1076,8 @@ class ToDo:
def upgradeFindPackages (self, rootInfo):
if self.setupFilesystems:
try:
- upgrade.mountRootPartition(rootInfo, self.fstab, self.instPath,
+ upgrade.mountRootPartition(self.intf,rootInfo,
+ self.fstab, self.instPath,
allowDirty = 0)
except SystemError, msg:
intf.messageWindow(("Dirty Filesystems"),
diff --git a/upgrade.py b/upgrade.py
index cd7d0e18c..0e4b78b5f 100644
--- a/upgrade.py
+++ b/upgrade.py
@@ -77,7 +77,7 @@ def findExistingRoots (intf, theFstab):
win.pop ()
return rootparts
-def mountRootPartition(rootInfo, theFstab, instPath, allowDirty = 0):
+def mountRootPartition(intf, rootInfo, theFstab, instPath, allowDirty = 0):
(root, rootFs) = rootInfo
mdList = raid.startAllRaid(theFstab.driveList())
@@ -97,6 +97,7 @@ def mountRootPartition(rootInfo, theFstab, instPath, allowDirty = 0):
raid.stopAllRaid(mdList)
if not allowDirty and theFstab.hasDirtyFilesystems():
+ import sys
intf.messageWindow(("Dirty Filesystems"),
_("One or more of the filesystems for your Linux system "
"was not unmounted cleanly. Please boot your Linux "