diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-11-29 16:37:25 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-11-29 16:38:19 -0500 |
commit | c34349ac9ab37bb7ee1264057ab06f6b84608968 (patch) | |
tree | c7917b219a8b44663a5357a7f9514b2939d28281 /partitions.py | |
parent | f39819b45aa2c04103be79dce7941866c5d3af62 (diff) | |
download | anaconda-c34349ac9ab37bb7ee1264057ab06f6b84608968.tar.gz anaconda-c34349ac9ab37bb7ee1264057ab06f6b84608968.tar.xz anaconda-c34349ac9ab37bb7ee1264057ab06f6b84608968.zip |
With moving partitioning, we should do a confirmation before we write things
out to disk so do that check in partitioningComplete(). Therefore remove
the queryAutoPartOK() which is superfluous
Diffstat (limited to 'partitions.py')
-rw-r--r-- | partitions.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py index 25871a7e0..02f5df6f6 100644 --- a/partitions.py +++ b/partitions.py @@ -101,6 +101,20 @@ def partitioningComplete(anaconda): raise RuntimeError, ("Managed to not get an entry back from " "request.toEntry") + if anaconda.isKickstart: + return + + rc = anaconda.intf.messageWindow(_("Writing partitioning to disk"), + _("The partitioning options you have selected " + "will now be written to disk. Any " + "data on deleted or reformatted partitions " + "will be lost"), + type = "custom", custom_icon="warning", + custom_buttons=[_("Go _back"), + _("_Write changes to disk")], + default = 0) + if rc == 0: + return DISPATCH_BACK class Partitions: """Defines all of the partition requests and delete requests.""" |