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 Design Team

 
 
LinkBack Thread Tools
 
Old 05-15-2012, 08:13 PM
David Cantrell
 
Default Set network configuration for root on partial offload iscsi devices (#819132)

Ack assuming it's been tested (which you told me it was in irc, but
restating here for the other readers).

On Tue, May 15, 2012 at 10:11:40PM +0200, Radek Vykydal wrote:
> Set NM_CONTROLLED to "no" and pass ip= and ifname= parameters to dracut.
>
> Resolves: rhbz#819132
>
> Identification of (partial) offload devices will be probably done in better
> way in future (I plan to add it in scope of a bug for 6.4). For 6.3 at this
> point I'd prefer to go with the ':' presence.
>
> ---
> network.py | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/network.py b/network.py
> index 5d9e9b5..f9142ee 100644
> --- a/network.py
> +++ b/network.py
> @@ -290,7 +290,7 @@ class NetworkDevice(IfcfgFile):
> for d in anaconda.id.storage.devices:
> if (isinstance(d, storage.devices.iScsiDiskDevice) and
> rootdev.dependsOn(d)):
> - if d.nic == "default":
> + if d.nic == "default" or ":" in d.nic:
> if self.iface == ifaceForHostIP(d.host_address):
> return True
> elif d.nic == self.iface:
> @@ -762,7 +762,7 @@ class Network:
> def dracutSetupArgs(self, networkStorageDevice):
> netargs=set()
>
> - if networkStorageDevice.nic == "default":
> + if networkStorageDevice.nic == "default" or ":" in networkStorageDevice.nic:
> nic = ifaceForHostIP(networkStorageDevice.host_address)
> if not nic:
> return ""
> --
> 1.7.4
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT

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

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