Skip to content

Commit

Permalink
Merge pull request #5 from citynetwork/bugfix/resolved-extra-seteps
Browse files Browse the repository at this point in the history
Add hook around systemd-resolved installation
  • Loading branch information
noonedeadpunk authored Oct 12, 2023
2 parents 0e2b406 + 5d696b6 commit 97286b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install-systemd-resolved/cleanup.d/30-cleanup-resolved-mimic
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

rm ${TARGET_ROOT}/run/systemd/resolve/stub-resolv.conf
rmdir ${TARGET_ROOT}/run/systemd/resolve/
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

mkdir -p /run/systemd/resolve
echo "Saving /etc/resolve.conf to mimic systemd-resolved until in chroot"
cat /etc/resolv.conf > /run/systemd/resolve/stub-resolv.conf

0 comments on commit 97286b5

Please sign in to comment.