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 > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-04-2008, 04:42 AM
David Cantrell
 
Default Let users edit net settings on network failure in stage 1 (#465887)

This one has been around for a while. If a user selects the wrong
network interface in loader and waits for the failure message to
appear, they are taken back to the 'select an interface' screen.
They select the right interface, but loader used the TCP/IP settings
entered the first time around.

On network configuration failure and if we are doing an interactive
install, blank out ipv4method and ipv6method so that we take the
user to the TCP/IP configuration screen. I use ipv4method and
ipv6method to figure out if a kickstart installation is beginning,
so by blanking them out for the interactive install case, we get to
take the user back to the TCP/IP settings screen.
---
loader/net.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/loader/net.c b/loader/net.c
index 846712f..62dc236 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -453,6 +453,8 @@ int readNetConfig(char * device, iface_t * iface,
if (err) {
logMessage(ERROR, "failed to write %s data for %s (%d)",
SYSCONFIG_PATH, iface->device, err);
+ iface->ipv4method = IPV4_UNUSED_METHOD;
+ iface->ipv6method = IPV6_UNUSED_METHOD;
return LOADER_BACK;
}

@@ -463,6 +465,8 @@ int readNetConfig(char * device, iface_t * iface,
newtWinMessage(_("Network Error"), _("Retry"),
_("There was an error configuring your network "
"interface."));
+ iface->ipv4method = IPV4_UNUSED_METHOD;
+ iface->ipv6method = IPV6_UNUSED_METHOD;
return LOADER_BACK;
}
}
--
1.6.0.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-04-2008, 07:12 AM
Hans de Goede
 
Default Let users edit net settings on network failure in stage 1 (#465887)

David Cantrell wrote:

This one has been around for a while. If a user selects the wrong
network interface in loader and waits for the failure message to
appear, they are taken back to the 'select an interface' screen.
They select the right interface, but loader used the TCP/IP settings
entered the first time around.

On network configuration failure and if we are doing an interactive
install, blank out ipv4method and ipv6method so that we take the
user to the TCP/IP configuration screen. I use ipv4method and
ipv6method to figure out if a kickstart installation is beginning,
so by blanking them out for the interactive install case, we get to
take the user back to the TCP/IP settings screen.


Looks good to me.

Regards,

Hans



---
loader/net.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/loader/net.c b/loader/net.c
index 846712f..62dc236 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -453,6 +453,8 @@ int readNetConfig(char * device, iface_t * iface,
if (err) {
logMessage(ERROR, "failed to write %s data for %s (%d)",
SYSCONFIG_PATH, iface->device, err);
+ iface->ipv4method = IPV4_UNUSED_METHOD;
+ iface->ipv6method = IPV6_UNUSED_METHOD;
return LOADER_BACK;
}

@@ -463,6 +465,8 @@ int readNetConfig(char * device, iface_t * iface,

newtWinMessage(_("Network Error"), _("Retry"),
_("There was an error configuring your network "
"interface."));
+ iface->ipv4method = IPV4_UNUSED_METHOD;
+ iface->ipv6method = IPV6_UNUSED_METHOD;
return LOADER_BACK;
}
}


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

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