[PATCH 2/4 master] Do not set hostname in stage 1.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We will do it in stage 2 ks handling. Removed code code is in path
that is obsoleted with recent kickstart networking changes.
---
 loader/loader.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 2ef02d0..6060514 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1599,15 +1599,6 @@ static void doLoaderMain(struct loaderData_s *loaderData,
                 logMessage(DEBUGLVL, "in doLoaderMain, calling readNetConfig()");
                 rc = readNetConfig(devName, &iface, loaderData->netCls, loaderData->method);
 
-                /* set the hostname if we have that */
-                if (loaderData->hostname) {
-                    if (sethostname(loaderData->hostname,
-                                    strlen(loaderData->hostname))) {
-                        logMessage(ERROR, "error setting hostname to %s",
-                                   loaderData->hostname);
-                    }
-                }
-
                 free(ret);
                 ret = NULL;
 
-- 
1.7.4

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux