Skip to content

Commit

Permalink
check if systemd-resolved is used
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 23, 2022
1 parent 369b6f9 commit 3b614a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/subroutines
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,9 @@ task_repository () {
# resolv.conf is needed, /etc/hosts is useful in /target
# use a file from the config space or from /etc inside the nfsroot
if ! fcopy -BM $v /etc/resolv.conf ; then
if [ -d "$FAI_ROOT/run/systemd/resolve" ]; then
cp $v /etc/resolv.conf "$FAI_ROOT/run/systemd/resolve/stub-resolv.conf"
fi
if [ "$(readlink -f /etc/resolv.conf)" = "$(readlink -f $FAI_ROOT/etc/resolv.conf)" ] ; then
:
# no need for copy since both are pointing to the same file
Expand Down

0 comments on commit 3b614a1

Please sign in to comment.