From bce0c3db8edc05d62cfdf8fc64cf2a3f4f618b8e Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Sat, 11 Apr 2020 16:45:37 +0200 Subject: [PATCH] fixing resolver in ethernet-dhcp hook --- src/hooks/hook-ethernet-dhcp.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hooks/hook-ethernet-dhcp.sh b/src/hooks/hook-ethernet-dhcp.sh index 2e87552..65e64f1 100644 --- a/src/hooks/hook-ethernet-dhcp.sh +++ b/src/hooks/hook-ethernet-dhcp.sh @@ -16,5 +16,7 @@ DHCP=yes EOF # enable said network configuration -systemctl enable systemd-networkd.service -systemctl enable systemd-resolved.service +systemctl enable --now systemd-networkd.service +systemctl enable --now systemd-resolved.service + +ln -sf /var/run/systemd/resolve/resolv.conf /etc/resolv.conf