summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-08-15 15:25:14 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-08-16 12:43:13 +0800
commit6505dbd5abb00936c3e53b54f97f8aa628699e59 (patch)
treec12d94cee6c6efb0f5704635f6a15ee47f708897
parent9b7a01a40fd9476583fb5f7dfbd4006e45d8e291 (diff)
downloadtalos-petitboot-6505dbd5abb00936c3e53b54f97f8aa628699e59.tar.gz
talos-petitboot-6505dbd5abb00936c3e53b54f97f8aa628699e59.zip
discover/network: fix incorrect nameserver directive in resolv.conf
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--discover/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/network.c b/discover/network.c
index 3b01f9f..8be07aa 100644
--- a/discover/network.c
+++ b/discover/network.c
@@ -428,7 +428,7 @@ static void network_init_dns(struct network *network)
int dns_conf_len;
char *dns_conf;
- dns_conf = talloc_asprintf(network, "server %s\n",
+ dns_conf = talloc_asprintf(network, "nameserver %s\n",
config->network.dns_servers[i]);
if (strstr(buf, dns_conf)) {
OpenPOWER on IntegriCloud