diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-03-04 09:45:02 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-03-05 10:49:44 -1000 |
commit | f71453e654d5c2212cc2fa3e6f215d3684937c0d (patch) | |
tree | fc2582787a96f05823e453736dcabfb6f6407ec4 /platform.py | |
parent | 83fef98ba14c5c1f6a138f47cf964ea24033d877 (diff) | |
download | anaconda-f71453e654d5c2212cc2fa3e6f215d3684937c0d.tar.gz anaconda-f71453e654d5c2212cc2fa3e6f215d3684937c0d.tar.xz anaconda-f71453e654d5c2212cc2fa3e6f215d3684937c0d.zip |
Do not raise DeviceError if not bootable device is found.
Continuation of 8fe8f5478e84adbe28cca63d72b9ea6552ae79e9 for the
other platforms listed in platform.py.
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 = {} |