[PATCH 6/7] Return whatever we get here, we don't care if bootDev is None here.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This function will return None until the user sets up a /boot or
a / filesystem.
---
 platform.py |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/platform.py b/platform.py
index ef9ff0c..4adc5d1 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):
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux