]> git.ozlabs.org Git - petitboot/blobdiff - discover/platform-powerpc.c
discover/platform-powerpc: Don't rely on NVRAM working
[petitboot] / discover / platform-powerpc.c
index 28c081d7540332281e972609f935496141905a21..a115e34bf38375a45243ec933243559f5317eb4d 100644 (file)
@@ -692,7 +692,7 @@ static bool probe(struct platform *p, void *ctx)
        struct stat statbuf;
        int rc;
 
-       /* we need a device tree and a working nvram binary */
+       /* we need a device tree */
        rc = stat("/proc/device-tree", &statbuf);
        if (rc)
                return false;
@@ -700,10 +700,6 @@ static bool probe(struct platform *p, void *ctx)
        if (!S_ISDIR(statbuf.st_mode))
                return false;
 
-       rc = process_run_simple(ctx, "nvram", "--print-config", NULL);
-       if (!WIFEXITED(rc) || WEXITSTATUS(rc) != 0)
-               return false;
-
        platform = talloc(ctx, struct platform_powerpc);
        list_init(&platform->params);