diff options
author | Erik Troan <ewt@redhat.com> | 2000-08-05 13:44:04 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-08-05 13:44:04 +0000 |
commit | b395c063a51f089e99a2e006f43da7239590c224 (patch) | |
tree | cb1d57143c17f5de45f2c9b6bd90631b41cef4dc /fstab.py | |
parent | a864d0d93e771168f7b7099ae414c4c18d60034b (diff) | |
download | anaconda-b395c063a51f089e99a2e006f43da7239590c224.tar.gz anaconda-b395c063a51f089e99a2e006f43da7239590c224.tar.xz anaconda-b395c063a51f089e99a2e006f43da7239590c224.zip |
catch problems writing out partitioning information and force a reboot
Diffstat (limited to 'fstab.py')
-rw-r--r-- | fstab.py | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -206,7 +206,19 @@ class Fstab: self.ddruid.setReadOnly(readOnly) def savePartitions(self): - self.ddruid.save() + try: + self.ddruid.save() + except SystemError: + # We can't reread the partition table for some reason. Display + # an error message and reboot + self.messageWindow(_("Error"), + _("The kernel is unable to read your new partitioning " + "information, probably because you modified extended " + "partitions. While this is not critical, you must " + "reboot your machine before proceeding. Insert the " + "Red Hat boot disk now and press \"Ok\" to reboot " + "your system.\n")) + sys.exit(0) def runDruid(self): rc = self.ddruid.edit() |