diff options
Diffstat (limited to 'platform.py')
-rw-r--r-- | platform.py | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/platform.py b/platform.py index 2c35a5cbf..6db026e3e 100644 --- a/platform.py +++ b/platform.py @@ -126,12 +126,7 @@ class EFI(Platform): def bootDevice(self): mntDict = self._mntDict() - bootDev = mntDict.get("/boot/efi") - - if not bootDev: - raise DeviceError("No bootable device found") - else: - return bootDev + return mntDict.get("/boot/efi") def bootloaderChoices(self, bl): bootDev = self.bootDevice() @@ -234,10 +229,7 @@ class IPSeriesPPC(PPC): bootDev = device break - if not bootDev: - raise DeviceError("No bootable device found") - else: - return bootDev + return bootDev def bootloaderChoices(self, bl): ret = {} @@ -283,10 +275,7 @@ class NewWorldPPC(PPC): if device.format.type == "hfs" and device.bootable: bootDev = device - if not bootDev: - raise DeviceError("No bootable device found") - else: - return bootDev + return bootDev def bootloaderChoices(self, bl): ret = {} |