summaryrefslogtreecommitdiffstats
path: root/discover/ipmi.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-09-06 13:30:30 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-09-08 14:26:27 +1000
commit662129afba2d344d692a9dbfd430c91eff4f281d (patch)
tree04a6ab48f0c0c575ee2a72b8b2958510a3750d2b /discover/ipmi.c
parent82b4c9d7ecbfada62295620a6082caf1b9860ff6 (diff)
downloadtalos-petitboot-662129afba2d344d692a9dbfd430c91eff4f281d.tar.gz
talos-petitboot-662129afba2d344d692a9dbfd430c91eff4f281d.zip
discover: Avoid writing network overrides to NVRAM
Explicitly keep track of whether the current interface config was set by an IPMI network override, and avoid overwriting any saved config unless the override was marked persistent. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/ipmi.c')
-rw-r--r--discover/ipmi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/ipmi.c b/discover/ipmi.c
index 38423b2..2aaf114 100644
--- a/discover/ipmi.c
+++ b/discover/ipmi.c
@@ -309,6 +309,7 @@ int parse_ipmi_interface_override(struct config *config, uint8_t *buf,
i += ipsize;
}
+ ifconf->override = true;
pb_log("Applying IPMI network interface override\n");
/* Replace any existing interface config */
OpenPOWER on IntegriCloud