Although we need nvram to save settings, we may be running on a
nvram-less machine, but still need to detect as powerpc.
This change removes the nvram check.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
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;
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);