diff options
author | Marc 'risson' Schmitt <marc.schmitt@risson.space> | 2020-10-20 00:36:32 +0200 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-10-19 21:32:58 -0700 |
commit | 9e6bede5abd882943e58d665ba6245c5b32d91e8 (patch) | |
tree | 29135074361480ec8a9bbf1af941075a69fc7014 | |
parent | b565432a701cae5e1cd957e31f0675efd1df391f (diff) |
nixos/initrd-network: fix /etc/resolv.conf when multiple dns servers from DHCP
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
-rw-r--r-- | nixos/modules/system/boot/initrd-network.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/system/boot/initrd-network.nix b/nixos/modules/system/boot/initrd-network.nix index ec794d6eb014..2a7417ed3715 100644 --- a/nixos/modules/system/boot/initrd-network.nix +++ b/nixos/modules/system/boot/initrd-network.nix @@ -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 |