diff options
author | Chris Lumens <clumens@redhat.com> | 2008-01-22 11:17:03 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-01-22 11:17:03 -0500 |
commit | 53dba83b7e62c4b61f9551cc5c4e5236e5d1f244 (patch) | |
tree | edcd28f5f62624c23288f8c066b5cf9ef0eca5d7 /bootloader.py | |
parent | 788eec8c4660904daa287b84e88239cb090d26b5 (diff) | |
download | anaconda-53dba83b7e62c4b61f9551cc5c4e5236e5d1f244.tar.gz anaconda-53dba83b7e62c4b61f9551cc5c4e5236e5d1f244.tar.xz anaconda-53dba83b7e62c4b61f9551cc5c4e5236e5d1f244.zip |
Don't allow backing up to partitioning (#429618).
Diffstat (limited to 'bootloader.py')
-rw-r--r-- | bootloader.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/bootloader.py b/bootloader.py index b8786d7f1..f3e3baf68 100644 --- a/bootloader.py +++ b/bootloader.py @@ -23,7 +23,7 @@ import isys import partedUtils -import os +import os, sys import iutil import string import rhpl @@ -41,7 +41,16 @@ from fsset import * def bootloaderSetupChoices(anaconda): if anaconda.dir == DISPATCH_BACK: - return + rc = anaconda.intf.messageWindow(_("Warning"), + _("Your filesystems have already been activated. You " + "cannot go back past this point.\n\nWould you like to " + "continue with the installation?"), + type="custom", custom_icon=["error","error"], + custom_buttons=[_("_Exit installer"), _("_Continue")]) + + if rc == 0: + sys.exit(0) + return DISPATCH_FORWARD # FIXME: this is a hack... if flags.livecd: |