[PATCH] On kickstart installs, you can't select a different parttype (#519137, #520058).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a particular problem on text kickstart installs, where there is no
partitioning UI to go back to.  Everywhere else in the partitioning code, we
just tell the user that it's going to reboot instead of offering some choice. So,
do the same thing in this case.
---
 storage/partitioning.py |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index e44d7f4..4094431 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -176,11 +176,19 @@ def doAutoPartition(anaconda):
         (disks, devs) = _createFreeSpacePartitions(anaconda)
 
         if disks == []:
-            anaconda.intf.messageWindow(_("Error Partitioning"),
-                                        _("Could not find enough free space "
-                                          "for automatic partitioning, please "
-                                          "use another partitioning method."),
+            if anaconda.isKickstart:
+                msg = _("Could not find enough free space for automatic "
+                        "partitioning.  Press 'OK' to exit the installer.")
+            else:
+                msg = _("Could not find enough free space for automatic "
+                        "partitioning, please use another partitioning method.")
+
+            anaconda.intf.messageWindow(_("Error Partitioning"), msg,
                                         custom_icon='error')
+
+            if anaconda.isKickstart:
+                sys.exit(0)
+
             anaconda.id.storage.reset()
             return DISPATCH_BACK
 
-- 
1.6.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux