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

Brian C. Lane bcl at redhat.com
Wed Oct 30 01:27:13 UTC 2013


On Tue, Oct 29, 2013 at 03:42:20PM -0400, Samantha N. Bueno wrote:
> 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

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list