Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   Do not pass :default:default iscsi nic specification to dracut (#500273) (http://www.linux-archive.org/debian-user/657937-do-not-pass-default-default-iscsi-nic-specification-dracut-500273-a.html)

Vratislav Podzimek 04-20-2012 08:51 AM

Do not pass :default:default iscsi nic specification to dracut (#500273)
 
Ack to both.

On Wed, 2012-04-18 at 16:57 +0200, Radek Vykydal wrote:
> Instead leave the iscsi_iface_name and netdev_name values out,
> i.e. the option should be:
> netroot=iscsi:[<username>:<password>[:<reverse>:<password>]@][<servername>]:[<protocol>]:[<port>][:[<iscsi_iface_name>]:[<netdev_name>]]:[<LUN>]:<targetname>
>
> Related: rhbz#500273
> ---
> storage/devices.py | 12 +++++++-----
> 1 files changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/storage/devices.py b/storage/devices.py
> index 25d1bea..96c6238 100644
> --- a/storage/devices.py
> +++ b/storage/devices.py
> @@ -3660,11 +3660,13 @@ class iScsiDiskDevice(DiskDevice, NetworkStorageDevice):
> netroot += ":%s:%s" % (auth.reverse_username,
> auth.reverse_password)
>
> - netroot += "@%s::%d:%s:%s::%s" % (address,
> - self.node.port,
> - self.node.iface,
> - self.nic,
> - self.node.name)
> + iface_spec = ""
> + if self.nic != "default":
> + iface_spec = ":%s:%s" % (self.node.iface, self.nic)
> + netroot += "@%s::%d%s::%s" % (address,
> + self.node.port,
> + iface_spec,
> + self.node.name)
>
> initiator = "iscsi_initiator=%s" % self.initiator
>

--
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.