[PATCH f12-branch] Don't warn /usr should be formatted when "Format as:" is already selected

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

 



When editing a pre-existing mdraid set and selecting /usr (or any of
the other mountpoints listed in formatByDefault()) as mountpoint, anaconda
always tells that this mountpoint should be formatted before installation.

This patch makes anaconda not give this warning when the user has already
selected "Format as:" (ext4, ...).
---
 iw/raid_dialog_gui.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index 64c0a8a..f2a8a28 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -285,7 +285,7 @@ class RaidEditor:
                         usedev = self.origrequest
                     migrate = True
 
-                if self.origrequest.format.exists and \
+                if self.origrequest.format.exists and not format and \
                    self.storage.formatByDefault(self.origrequest):
                     if not queryNoFormatPreExisting(self.intf):
 		        continue
-- 
1.6.5.rc2

_______________________________________________
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