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 Development

 
 
LinkBack Thread Tools
 
Old 05-21-2010, 08:43 AM
Hans de Goede
 
Default Add default iSCSI initiator name in rescue mode (#594434)

---
textw/add_drive_text.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/textw/add_drive_text.py b/textw/add_drive_text.py
index 663d45d..e805618 100644
--- a/textw/add_drive_text.py
+++ b/textw/add_drive_text.py
@@ -135,11 +135,13 @@ class addDriveDialog(object):
"'linux asknetwork'")
return INSTALL_BACK

+ iname = storage.iscsi.iscsi().initiator
(button, entries) = EntryWindow(screen,
_("Configure iSCSI Parameters"),
_("To use iSCSI disks, you must provide the address of your iSCSI target and the iSCSI initiator name you've configured for your host."),
prompts = [ _("Target IP Address"),
- _("iSCSI Initiator Name"),
+ (_("iSCSI Initiator Name"),
+ iname),
_("CHAP username"),
_("CHAP password"),
_("Reverse CHAP username"),
@@ -172,8 +174,7 @@ class addDriveDialog(object):
raise ValueError, msg

iname = entries[1].strip()
- if not storage.iscsi.iscsi().initiatorSet:
- storage.iscsi.iscsi().initiator = iname
+ storage.iscsi.iscsi().initiator = iname
storage.iscsi.iscsi().addTarget(ip, port, user, pw, user_in, pw_in,
intf=self.anaconda.intf)

--
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-21-2010, 03:44 PM
Chris Lumens
 
Default Add default iSCSI initiator name in rescue mode (#594434)

> diff --git a/textw/add_drive_text.py b/textw/add_drive_text.py
> index 663d45d..e805618 100644
> --- a/textw/add_drive_text.py
> +++ b/textw/add_drive_text.py
> @@ -135,11 +135,13 @@ class addDriveDialog(object):
> "'linux asknetwork'")
> return INSTALL_BACK
>
> + iname = storage.iscsi.iscsi().initiator
> (button, entries) = EntryWindow(screen,
> _("Configure iSCSI Parameters"),
> _("To use iSCSI disks, you must provide the address of your iSCSI target and the iSCSI initiator name you've configured for your host."),
> prompts = [ _("Target IP Address"),
> - _("iSCSI Initiator Name"),
> + (_("iSCSI Initiator Name"),
> + iname),
> _("CHAP username"),
> _("CHAP password"),
> _("Reverse CHAP username"),

Do you have a reference for including a tuple in the list of prompts?

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-21-2010, 05:48 PM
Hans de Goede
 
Default Add default iSCSI initiator name in rescue mode (#594434)

Hi,

On 05/21/2010 05:44 PM, Chris Lumens wrote:

diff --git a/textw/add_drive_text.py b/textw/add_drive_text.py
index 663d45d..e805618 100644
--- a/textw/add_drive_text.py
+++ b/textw/add_drive_text.py
@@ -135,11 +135,13 @@ class addDriveDialog(object):
"'linux asknetwork'")
return INSTALL_BACK

+ iname = storage.iscsi.iscsi().initiator
(button, entries) = EntryWindow(screen,
_("Configure iSCSI Parameters"),
_("To use iSCSI disks, you must provide the address of your iSCSI target and the iSCSI initiator name you've configured for your host."),
prompts = [ _("Target IP Address"),
- _("iSCSI Initiator Name"),
+ (_("iSCSI Initiator Name"),
+ iname),
_("CHAP username"),
_("CHAP password"),
_("Reverse CHAP username"),


Do you have a reference for including a tuple in the list of prompts?



I found this while googling for more info on EntryWindow, first hit
when searching for "newt EntryWindow":
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340366

And I tested the patch and it works.

Regards,

Hans

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-21-2010, 09:02 PM
Chris Lumens
 
Default Add default iSCSI initiator name in rescue mode (#594434)

> >Do you have a reference for including a tuple in the list of prompts?
> >
>
> I found this while googling for more info on EntryWindow, first hit
> when searching for "newt EntryWindow":
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340366
>
> And I tested the patch and it works.

Great, ship it.

- Chris

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

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