[master/f20-branch/rhel7-branch] Update bootDrive info when storage config updated in text-mode. (#861018)

Samantha N. Bueno sbueno+anaconda at redhat.com
Tue Oct 29 19:42:20 UTC 2013


bootDrive was never being updated in text mode, and so if a device was
ever de-selected [dasda, dasdb] -> [dasdb], global ks data still thought
dasda was the boot device and would throw an error when checking the
storage configuration.

Resolves: rhbz#861018
---
 pyanaconda/ui/tui/spokes/storage.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
index 13d2c1f..0fab394 100644
--- a/pyanaconda/ui/tui/spokes/storage.py
+++ b/pyanaconda/ui/tui/spokes/storage.py
@@ -241,6 +241,11 @@ class StorageSpoke(NormalTUISpoke):
 
         self.data.bootloader.location = "mbr"
 
+        if self.data.bootloader.bootDrive and \
+            self.data.bootloader.bootDrive not in self.selected_disks:
+                self.data.bootloader.bootDrive = ""
+                self.storage.bootloader.reset()
+
         self.storage.config.update(self.data)
 
         # If autopart is selected we want to remove whatever has been
-- 
1.8.3.1



More information about the anaconda-patches mailing list