]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: Don't modify config when clearing IPMI override
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 24 Aug 2017 01:43:45 +0000 (11:43 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 29 Aug 2017 04:11:28 +0000 (14:11 +1000)
commitf6bebdf37fbcd26c7c27ee6a5a4da7f1f3d40fd3
tree230f0f98e7eadf0543be7d9cf40f41f8a1059de1
parent8edb984cdaf8beac0b61f56da0cdde1c798215c3
ui/ncurses: Don't modify config when clearing IPMI override

When safe mode is active the config displayed in nc-config is only a
subset of the actual config since device init has not yet occurred.
However when the "clear override" checkbox is ticked and the config
saved, the form will set the config as it is displayed, resulting in
device-specific config (eg. boot order and network settings) being
cleared. If the user only ticked the "clear override" checkbox this most
likely isn't what they intended.

Instead change the checkbox to a button which when pressed clears the
override and exits safe mode if active, without modifying the rest of
the configuration.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
(cherry picked from commit c30d76aabf5f548556ea25b1fac5eb707a9f737a)
ui/ncurses/nc-config.c