diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-02 20:11:04 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-02 20:11:04 +0000 |
commit | bbffa4d3c55377afdbb97223267f28dc43613dff (patch) | |
tree | a840a8b85ec8a1534f5eca0245df8376548d5fce /loader/net.c | |
parent | 925d7842837a1212b8c0d400b7e551240fe80959 (diff) | |
download | anaconda-bbffa4d3c55377afdbb97223267f28dc43613dff.tar.gz anaconda-bbffa4d3c55377afdbb97223267f28dc43613dff.tar.xz anaconda-bbffa4d3c55377afdbb97223267f28dc43613dff.zip |
added --nodnsr0-7-5
Diffstat (limited to 'loader/net.c')
-rw-r--r-- | loader/net.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/loader/net.c b/loader/net.c index 0737c503b..cba657945 100644 --- a/loader/net.c +++ b/loader/net.c @@ -500,12 +500,14 @@ int kickstartNetwork(char * device, struct networkDeviceConfig * netDev, char * arg, * chptr; poptContext optCon; struct in_addr * parseAddress; + int noDns = 0; struct poptOption ksOptions[] = { { "bootproto", '\0', POPT_ARG_STRING, &bootProto, 0 }, { "gateway", '\0', POPT_ARG_STRING, NULL, 'g' }, { "ip", '\0', POPT_ARG_STRING, NULL, 'i' }, { "nameserver", '\0', POPT_ARG_STRING, NULL, 'n' }, { "netmask", '\0', POPT_ARG_STRING, NULL, 'm' }, + { "nodns", '\0', POPT_ARG_NONE, &noDns, 0 }, { 0, 0, 0, 0, 0 } }; @@ -594,7 +596,12 @@ int kickstartNetwork(char * device, struct networkDeviceConfig * netDev, fillInIpInfo(netDev); configureNetwork(netDev); - findHostAndDomain(netDev, flags); + + logMessage("nodns is %d", noDns); + + if (!noDns) + findHostAndDomain(netDev, flags); + writeResolvConf(netDev); return 0; |