Skip to content

Commit

Permalink
nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers …
Browse files Browse the repository at this point in the history
…from DHCP

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
  • Loading branch information
rissson committed Oct 19, 2020
1 parent fba7eae commit 2461c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/system/boot/initrd-network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ let
fi
if [ -n "$dns" ]; then
rm -f /etc/resolv.conf
for i in $dns; do
echo "nameserver $dns" >> /etc/resolv.conf
for server in $dns; do
echo "nameserver $server" >> /etc/resolv.conf
done
fi
fi
Expand Down

0 comments on commit 2461c6c

Please sign in to comment.