1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-06 18:47:19 +01:00
Files
installer/data/data/bootstrap
Yamato Tanaka 5bd43bc44b OCPBUGS-32792: update resolv.conf every tiem on bootstrap
Currently, /etc/resolv.conf on bootstrap node is updated only once.
Because of this, /etc/resolv.conf may be incorrect due to timing
issues. By this change, /etc/resolv.conf is updtaed at all "up",
"dhcp4-update", "dhcp6-update", "dns-change" events.

"dns-change" event is supposed to be enough if it works, but
"dns-change" is a new function[1] of NetworkManager. Other events,
"up", "dhcp4-update" and "dhcp6-update", are kept for environments
where "dns-change" doesn't works.

[1] NetworkManager starting from 1.42.2-12.el9_2 and
1.36.0-17.el8_6 adds a new event `dns-change` which is fired
whenever a change to the DNS configuration happens.
2025-08-14 06:05:49 +00:00
..