]> git.ozlabs.org Git - petitboot/commit - lib/pb-config/storage-powerpc-nvram.c
config/powerpc: Always call update_network_config
authorJeremy Kerr <jk@ozlabs.org>
Mon, 23 Dec 2013 08:42:21 +0000 (16:42 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 23 Dec 2013 09:06:55 +0000 (17:06 +0800)
commitfafa0c268844aa3921f9df0ef72a1cb7c860793f
tree9235f81650d4370a40530165490fe604212ae24b
parentb49d86901dcdf0a6ddddba7c90d67b62c4acf2f8
config/powerpc: Always call update_network_config

Currently, we have a bug when setting the default network configuration
(ie, no devices have any specific config), as we won't call
update_network_config to clear out the value of the petitboot,network
parameter.

This change always invokes update_network_config, regardless of the
number of interfaces configured. This ensures we clear out the
petitboot,network param, which is then synced to nvram if the param has
changed.

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