summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-05 13:44:04 +0000
committerErik Troan <ewt@redhat.com>2000-08-05 13:44:04 +0000
commitb395c063a51f089e99a2e006f43da7239590c224 (patch)
treecb1d57143c17f5de45f2c9b6bd90631b41cef4dc /fstab.py
parenta864d0d93e771168f7b7099ae414c4c18d60034b (diff)
downloadanaconda-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.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/fstab.py b/fstab.py
index 2e291d7ee..cdd53294d 100644
--- a/fstab.py
+++ b/fstab.py
@@ -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()