X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpb-config%2Fstorage-powerpc-nvram.c;h=42de5984f02cc0e53537f864b8f3c067c2f0db03;hb=fafa0c268844aa3921f9df0ef72a1cb7c860793f;hp=bd7526806aeb0c0d11cb2906fc28b78932648504;hpb=9239fd1ec121fc6c6eda49ef5c2dab081a026785;p=petitboot diff --git a/lib/pb-config/storage-powerpc-nvram.c b/lib/pb-config/storage-powerpc-nvram.c index bd75268..42de598 100644 --- a/lib/pb-config/storage-powerpc-nvram.c +++ b/lib/pb-config/storage-powerpc-nvram.c @@ -426,7 +426,7 @@ static char *dns_config_str(void *ctx, const char **dns_servers, int n) char *str; int i; - str = talloc_strdup(ctx, "dns="); + str = talloc_strdup(ctx, "dns,"); for (i = 0; i < n; i++) { str = talloc_asprintf_append(str, "%s%s", i == 0 ? "" : ",", @@ -481,8 +481,7 @@ static int update_config(struct powerpc_nvram_storage *nv, talloc_free(val); } - if (config->network.n_interfaces) - update_network_config(nv, config); + update_network_config(nv, config); return write_nvram(nv); }