summaryrefslogtreecommitdiffstats
path: root/platform.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-03-03 16:58:28 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-03-03 19:49:35 -1000
commit8fe8f5478e84adbe28cca63d72b9ea6552ae79e9 (patch)
tree2778bc3b616f9e63aa2246929b7fa225274ffd70 /platform.py
parente1a3a536de4df277a3a201652ebb242c8c0d127f (diff)
downloadanaconda-8fe8f5478e84adbe28cca63d72b9ea6552ae79e9.tar.gz
anaconda-8fe8f5478e84adbe28cca63d72b9ea6552ae79e9.tar.xz
anaconda-8fe8f5478e84adbe28cca63d72b9ea6552ae79e9.zip
Return whatever we get here, we don't care if bootDev is None here.
This function will return None until the user sets up a /boot or a / filesystem.
Diffstat (limited to 'platform.py')
-rw-r--r--platform.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/platform.py b/platform.py
index ef9ff0c8d..4adc5d106 100644
--- a/platform.py
+++ b/platform.py
@@ -62,12 +62,7 @@ class Platform(object):
raise NotImplementedError("bootDevice not implemented for this platform")
mntDict = self._mntDict()
- bootDev = mntDict.get("/boot", mntDict.get("/"))
-
- if not bootDev:
- raise DeviceError("No bootable device found")
- else:
- return bootDev
+ return mntDict.get("/boot", mntDict.get("/"))
@property
def bootFSType(self):