FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 11-02-2011, 10:56 PM
David Lehman
 
Default Omit protected disks from bootloader.drives.

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org