[PATCH 1/2] Omit protected disks from bootloader.drives.

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

 



Related: rhbz#750469
---
 pyanaconda/bootloader.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 6250f74..547f7b8 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -300,7 +300,8 @@ class BootLoader(object):
             # only generate the list if it is empty
             return self._drives
 
-        drives = [d for d in self.storage.disks if not d.format.hidden]
+        drives = [d for d in self.storage.disks if not d.format.hidden
+                                                    and not d.protected]
         self._drives = self._sort_drives(drives)
 
         # set "boot drive"
-- 
1.7.6

_______________________________________________
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