summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2015-04-02 17:59:30 +0800
committerJeremy Kerr <jk@ozlabs.org>2015-04-02 17:59:30 +0800
commitf2201e9716f7faedd6c6deba4169b5e7dd2c0cf1 (patch)
treed68a893b05f5084dd180cca976d9822afad73349 /discover
parent4f03d0c241df6e9e94efdc6729085d47417f0bac (diff)
downloadpetitboot-f2201e9716f7faedd6c6deba4169b5e7dd2c0cf1.zip
petitboot-f2201e9716f7faedd6c6deba4169b5e7dd2c0cf1.tar.gz
discover/platform-powerpc: Fix logic for persistent IPMI boot settings
We should only clear the IPMI bootdev if the setting *isn't* persistent. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/platform-powerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/platform-powerpc.c b/discover/platform-powerpc.c
index f6a78a9..395f134 100644
--- a/discover/platform-powerpc.c
+++ b/discover/platform-powerpc.c
@@ -836,7 +836,7 @@ static void pre_boot(struct platform *p, const struct config *config)
{
struct platform_powerpc *platform = to_platform_powerpc(p);
- if (config->ipmi_bootdev_persistent && platform->clear_ipmi_bootdev)
+ if (!config->ipmi_bootdev_persistent && platform->clear_ipmi_bootdev)
platform->clear_ipmi_bootdev(platform);
}
OpenPOWER on IntegriCloud