diff options
author | Erik Troan <ewt@redhat.com> | 2001-02-22 20:46:26 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-02-22 20:46:26 +0000 |
commit | 0217e463e81b0da7b0ce05ec8faf9d7f87e49a47 (patch) | |
tree | ae94970cf74ba3f0766eeb77fd53ebc5e8e169e5 /fstab.py | |
parent | 213c4241ed89208234764c4a790566247278e787 (diff) | |
download | anaconda-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.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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: |