boot is not used anywhere in the method below and I do not believe that it
is global. So, the only effect of this change would be that if
self.bootDevice raises an exception that is not in
(DeviceError, AttributeError) that exception will no longer be propagated.
But it seems unlikely that such an exception was being raised anyway.
Signed-off-by: mulhern <amulhern(a)redhat.com>
---
blivet/__init__.py | 4 ----
1 file changed, 4 deletions(-)
diff --git a/blivet/__init__.py b/blivet/__init__.py
index 882ea8a..e358e54 100644
--- a/blivet/__init__.py
+++ b/blivet/__init__.py
@@ -1543,10 +1543,6 @@ class Blivet(object):
filesystems = self.mountpoints
root = self.fsset.rootDevice
swaps = self.fsset.swapDevices
- try:
- boot = self.bootDevice
- except (DeviceError, AttributeError):
- boot = None
if root:
if root.size < 250:
--
1.8.3.1