[PATCH] When locating the EFI bootDevice, ensure that it has a mountpoint (#1145812)

Anne Mulhern amulhern at redhat.com
Fri Oct 31 23:02:33 UTC 2014


This is for RHEL6 only.

----- Original Message -----
From: "mulhern" <amulhern at redhat.com>
To: anaconda-patches at lists.fedorahosted.org
Cc: "mulhern" <amulhern at redhat.com>
Sent: Friday, October 31, 2014 7:00:58 PM
Subject: [PATCH] When locating the EFI bootDevice, ensure that it has a mountpoint (#1145812)

Resolves: rhbz#1145812

The EFI boot device is not considered valid unless it has a mountpoint,
so it makes no sense to provide one w/out.

This fact also holds for subclasses of EFI, taking into consideration whether
or not isEFI is True.

Signed-off-by: mulhern <amulhern at redhat.com>
---
 platform.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/platform.py b/platform.py
index 51e2e3f..3ff05ab 100644
--- a/platform.py
+++ b/platform.py
@@ -253,7 +253,8 @@ class EFI(Platform):
         for part in self.anaconda.id.storage.partitions:
            if part.disk and part.disk.name == drive \
                and part.format.type == "efi" \
-               and self.validBootPartSize(part.size):
+               and self.validBootPartSize(part.size) \
+               and part.format.mountpoint:
                 return part
         return None
 
-- 
1.9.3



More information about the anaconda-patches mailing list