Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preflight-linux: Add logic to check if /etc/resolv.conf managed by sy…
…stemd-resolved Current logic checks if systemd-resolved service is running and add the dispatcher file to network manager config which uses `systemd-resolve` to update the domain and dns for `crc` interface. But it is observed that the dispatcher is called when the NM interface changes state, but then the resolvectl call it contains has no effect on DNS resolution as systemd-resolved does not manage /etc/resolv.conf. This PR add logic to check if `/etc/resolv.conf` actually managed by systemd-resolved and if not then use `dnsmasq` configuration which works as expected.
- Loading branch information