summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2020-04-11 16:45:37 +0200
committerAndreas Grapentin <andreas@grapentin.org>2020-04-11 16:45:37 +0200
commitbce0c3db8edc05d62cfdf8fc64cf2a3f4f618b8e (patch)
treee3f9c757cd03f7ddca680a92baccc6e8a9b29c35
parentd18b703572201c6a0b896d1a35f630f6f86bdce2 (diff)
fixing resolver in ethernet-dhcp hook
-rw-r--r--src/hooks/hook-ethernet-dhcp.sh6
1 files 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