]> git.ozlabs.org Git - petitboot/commit
pb-config/powerpc: fix default option handling
authorJeremy Kerr <jk@ozlabs.org>
Thu, 23 Jan 2014 05:31:56 +0000 (13:31 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 23 Jan 2014 09:33:11 +0000 (17:33 +0800)
commite61e64c785de0809fb69cd160e8317f2de25793e
treea4f4fdbc5ed1a314e341bd26922b096a75eec4c1
parentf66b0807cace1cfda192810861ba6309bf6fa9fe
pb-config/powerpc: fix default option handling

Currently, we don't update nvram if an NVRAM parameter is set to the
default. This means we can never revert a configuration to its default
value.

This change fixes the default setting behaviour; instead of checking for
a default, we want to check if it's a default and the option is absent.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
lib/pb-config/storage-powerpc-nvram.c