]> git.ozlabs.org Git - petitboot/blobdiff - lib/pb-config/storage-powerpc-nvram.c
lib/process: Add add_stderr flag to process module
[petitboot] / lib / pb-config / storage-powerpc-nvram.c
index bd7526806aeb0c0d11cb2906fc28b78932648504..42de5984f02cc0e53537f864b8f3c067c2f0db03 100644 (file)
@@ -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);
 }