FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-04-2009, 03:19 AM
David Cantrell
 
Default 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.
---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 08:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org