Skip to content

Commit

Permalink
setup systemd-resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
koehlma committed Dec 22, 2024
1 parent 3102333 commit 70365bc
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@ set -euo pipefail
systemctl enable systemd-networkd.service

install -m 644 "${RECIPE_DIR}/files/dhcp.network" "/etc/systemd/network/"

# Setup `systemd-resolved`.
mkdir -p /run/systemd/resolve
cat /etc/resolv.conf > /run/systemd/resolve/stub-resolv.conf
apt-get install -y systemd-resolved
systemctl enable systemd-resolved.service
rm -f /etc/resolv.conf
ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

0 comments on commit 70365bc

Please sign in to comment.