summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-05-04 15:11:11 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-05-05 09:36:06 -1000
commit245d1951c40ecb61cee11f3ecc00e483bc8dd142 (patch)
treef80582e94430340b2bb6407639d3d04f3d1a53c1 /loader
parentf9679e36129619a68d526349fd68d78326be1932 (diff)
downloadanaconda-245d1951c40ecb61cee11f3ecc00e483bc8dd142.tar.gz
anaconda-245d1951c40ecb61cee11f3ecc00e483bc8dd142.tar.xz
anaconda-245d1951c40ecb61cee11f3ecc00e483bc8dd142.zip
Retry network configuration in loader (#492009)
Rewrite disabled network configuration scripts in loader if we ask the user to retry network configuration. nm-system-settings will pick up the change to those files and down those interfaces.
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.c2
-rw-r--r--loader/net.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 7b3eb0c2e..f960c28bd 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1378,7 +1378,7 @@ static char *doLoaderMain(struct loaderData_s *loaderData,
_("OK"), _("Back"), NULL);
}
- if (rc && rc != 1) {
+ if (rc && (rc != 1) && (loaderData->method == -1)) {
loaderData->method = -1;
step = STEP_KBD;
dir = -1;
diff --git a/loader/net.c b/loader/net.c
index 47e234609..bebabcd32 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -2,7 +2,7 @@
* net.c
*
* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 Red Hat, Inc.
- * 2006, 2007, 2008
+ * 2006, 2007, 2008, 2009
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -1939,6 +1939,11 @@ int kickstartNetworkUp(struct loaderData_s * loaderData, iface_t * iface) {
/* Going back to the interface selection screen, so unset anything
* we set before attempting to bring the incorrect interface up.
*/
+ if ((rc = writeDisabledNetInfo()) != 0) {
+ logMessage(ERROR, "writeDisabledNetInfo failure (%s): %d",
+ __func__, rc);
+ }
+
loaderData->netDev_set = 0;
loaderData->ipinfo_set = 0;
free(loaderData->ipv4);