File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
parts/linux/cloud-init/artifacts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -648,9 +648,9 @@ initialize_network_variables || exit $ERR_LOCALDNS_FAIL
648648# ---------------------------------------------------------------------------------------------------------------------
649649cleanup_iptables_and_dns || exit $ERR_LOCALDNS_FAIL
650650
651- # Wait for the DNS configuration to be reverted.
652- # This ensures systemd-resolved has removed localdns from resolv.conf before we proceed .
653- # This is called both at startup (to clean up leftover state) and during shutdown .
651+ # During startup, wait for the DNS configuration to be fully reverted.
652+ # This ensures systemd-resolved has removed localdns from resolv.conf before we read upstream DNS servers .
653+ # Note: the shutdown path does not invoke this wait; it only calls cleanup_iptables_and_dns .
654654if ! wait_for_localdns_removed_from_resolv_conf 5; then
655655 echo " Error: DNS configuration was not reverted within timeout."
656656 exit $ERR_LOCALDNS_FAIL
You can’t perform that action at this time.
0 commit comments