diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2015-04-02 17:59:30 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2015-04-02 17:59:30 +0800 |
commit | f2201e9716f7faedd6c6deba4169b5e7dd2c0cf1 (patch) | |
tree | d68a893b05f5084dd180cca976d9822afad73349 /discover | |
parent | 4f03d0c241df6e9e94efdc6729085d47417f0bac (diff) | |
download | petitboot-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.c | 2 |
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); } |