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 > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 03-10-2010, 12:35 PM
Hans de Goede
 
Default FcoeDiskDevice.dracutSetupString: handle DCB on / off option

---
storage/devices.py | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 69aa8bf..741e255 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -3355,7 +3355,19 @@ class FcoeDiskDevice(DiskDevice, NetworkStorageDevice):
log.debug("created new fcoe disk %s @ %s" % (device, self.nic))

def dracutSetupString(self):
- return "netroot=fcoe:%s:nodcb" % self.nic
+ dcb = True
+
+ from .fcoe import fcoe
+ for nic, dcb in fcoe().nics:
+ if nic == self.nic:
+ break
+
+ if dcb:
+ dcbOpt = "dcb"
+ else:
+ dcbOpt = "nodcb"
+
+ return "netroot=fcoe:%s:%s" % (self.nic, dcbOpt)


class OpticalDevice(StorageDevice):
--
1.7.0

_______________________________________________
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 09:47 PM.

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