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 04-18-2012, 02:57 PM
Radek Vykydal
 
Default Add ip= dracut parameter for iscsi nodes using default iface (#500273)

Related: rhbz#500273
---
network.py | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/network.py b/network.py
index ac6a901..5d9e9b5 100644
--- a/network.py
+++ b/network.py
@@ -762,14 +762,12 @@ class Network:
def dracutSetupArgs(self, networkStorageDevice):
netargs=set()

- if networkStorageDevice.nic:
- # Storage bound to a specific nic (ie FCoE)
- nic = networkStorageDevice.nic
- else:
- # Storage bound through ip, find out which interface leads to host
+ if networkStorageDevice.nic == "default":
nic = ifaceForHostIP(networkStorageDevice.host_address)
if not nic:
return ""
+ else:
+ nic = networkStorageDevice.nic

if nic not in self.netdevices.keys():
log.error('Unknown network interface: %s' % nic)
--
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 11:34 AM.

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