diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-05-22 18:31:16 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-06-30 11:32:06 +0800 |
commit | a70b45006752970840fdfff0a595d293b67a8548 (patch) | |
tree | 2ab388fbd3ab85f2a7f687ea8dc51828c2c76ba4 /discover/platform-powerpc.c | |
parent | a51beb34277a01ca577c35d6a66ceab38e6de67c (diff) | |
download | talos-petitboot-a70b45006752970840fdfff0a595d293b67a8548.tar.gz talos-petitboot-a70b45006752970840fdfff0a595d293b67a8548.zip |
discover/platform-powerpc: Don't rely on NVRAM working
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>
Diffstat (limited to 'discover/platform-powerpc.c')
-rw-r--r-- | discover/platform-powerpc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c index 28c081d..a115e34 100644 --- a/discover/platform-powerpc.c +++ b/discover/platform-powerpc.c @@ -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); |