summaryrefslogtreecommitdiffstats
path: root/pyanaconda/bootloader.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2012-04-03 14:25:32 -0700
committerBrian C. Lane <bcl@redhat.com>2012-04-03 14:30:58 -0700
commit26a7a60cb796be6c13cf21a7b5cdd9b7b1112d94 (patch)
tree069fb6b275d2ea626a587d45df204ab0145637a8 /pyanaconda/bootloader.py
parent104c442a33098670065c2dd398db991f035babed (diff)
downloadanaconda-26a7a60cb796be6c13cf21a7b5cdd9b7b1112d94.tar.gz
anaconda-26a7a60cb796be6c13cf21a7b5cdd9b7b1112d94.tar.xz
anaconda-26a7a60cb796be6c13cf21a7b5cdd9b7b1112d94.zip
detect live backing device (#809342)
In F17 we now have /run/initramfs/live which, when mounted, is the install media being used. This uses that to add the disk to the list of protected devices. Signed-off-by: Brian C. Lane <bcl@redhat.com>
Diffstat (limited to 'pyanaconda/bootloader.py')
-rw-r--r--pyanaconda/bootloader.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index ee7ae1169..d1ded3920 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -375,7 +375,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"