summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-02-22 20:46:26 +0000
committerErik Troan <ewt@redhat.com>2001-02-22 20:46:26 +0000
commit0217e463e81b0da7b0ce05ec8faf9d7f87e49a47 (patch)
treeae94970cf74ba3f0766eeb77fd53ebc5e8e169e5 /fstab.py
parent213c4241ed89208234764c4a790566247278e787 (diff)
downloadanaconda-0217e463e81b0da7b0ce05ec8faf9d7f87e49a47.tar.gz
anaconda-0217e463e81b0da7b0ce05ec8faf9d7f87e49a47.tar.xz
anaconda-0217e463e81b0da7b0ce05ec8faf9d7f87e49a47.zip
let rescue mode be more tolerant of mount failures
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fstab.py b/fstab.py
index a0f25fbf3..03f78525c 100644
--- a/fstab.py
+++ b/fstab.py
@@ -799,7 +799,7 @@ class Fstab:
return 0
- def mountFilesystems(self, instPath):
+ def mountFilesystems(self, instPath, raiseErrors = 0):
if (not self.setupFilesystems): return
self.startExistingRaid()
@@ -820,12 +820,13 @@ class Fstab:
iutil.mkdirChain(instPath + mntpoint)
isys.mount(device, instPath + mntpoint, fstype = fsystem)
except SystemError, (errno, msg):
+ if raiseErrors:
+ raise SystemError, (errno, msg)
self.messageWindow(_("Error"),
_("Error mounting device %s as %s: %s\n\n"
"This most likely means this partition has "
"not been formatted.\n\nPress OK to reboot your "
"system.") % (device, mntpoint, msg))
-# raise SystemError, (errno, msg)
sys.exit(0)
try: