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 User

 
 
LinkBack Thread Tools
 
Old 02-23-2012, 07:12 AM
Radek Vykydal
 
Default Pass ifname to dracut for disconnected fcoe ifaces (#743784)

Resolves: rhbz#743784

The case:
We discover LUN on an iface which is part of multipath setup.
If the iface is disconnected after discovery, anaconda doesn't
write dracut ifname argument for the disconnected iface path
(in Network.dracutSetupArgs).
Dracut needs the explicit ifname= because biosdevname
fails to rename the iface (because of BFS booting from it).

The patch has been tested by reporter.

---
booty/bootloaderInfo.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py
index 9011886..7355e22 100644
--- a/booty/bootloaderInfo.py
+++ b/booty/bootloaderInfo.py
@@ -147,6 +147,18 @@ class KernelArguments:
if not types.has_key(i[0]):
args.add(i[1])

+ # This is needed for bug #743784. The case:
+ # We discover LUN on an iface which is part of multipath setup.
+ # If the iface is disconnected after discovery anaconda doesn't
+ # write dracut ifname argument for the disconnected iface path
+ # (in Network.dracutSetupArgs).
+ # Dracut needs the explicit ifname= because biosdevname
+ # fails to rename the iface (because of BFS booting from it).
+ import storage.fcoe
+ for nic, dcb in storage.fcoe.fcoe().nics:
+ hwaddr = self.id.network.netdevices[nic].get("HWADDR")
+ args.add("ifname=%s:%s" % (nic, hwaddr.lower()))
+
return args

def get(self):
--
1.7.4

_______________________________________________
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 07:01 AM.

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