[master/rhel7-branch] s390x: Apply disk selection before dasdfmt to preserve data. (#1078892)

Samantha N. Bueno sbueno+anaconda at redhat.com
Mon Sep 22 13:39:24 UTC 2014


After running dasdfmt on any DASDs requiring it, some key information
(selected disks) was getting lost. So, apply disk selection before running
dasdfmt in order to preserve it.

Resolves: rhbz#1078892
---
 pyanaconda/ui/gui/spokes/storage.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index d597173..d2ec6fe 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -809,6 +809,9 @@ class StorageSpoke(NormalSpoke, StorageChecker):
             # check for unformatted DASDs and launch dasdfmt if any discovered
             dasds = make_unformatted_dasd_list(self.selected_disks)
             if len(dasds) > 0:
+                # We want to apply current selection before running dasdfmt to
+                # prevent this information from being lost afterward
+                applyDiskSelection(self.storage, self.data, self.selected_disks)
                 dialog = DasdFormatDialog(self.data, self.storage, dasds)
                 ignoreEscape(dialog.window)
                 rc = self.run_lightbox_dialog(dialog)
-- 
1.9.3



More information about the anaconda-patches mailing list