Skip to content

Commit

Permalink
nixos/initrd-network: run DHCP in background
Browse files Browse the repository at this point in the history
  • Loading branch information
presto8 committed Dec 19, 2024
1 parent e07f196 commit ac29015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/system/boot/initrd-network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ in
# Acquire DHCP leases.
for iface in ${dhcpIfShellExpr}; do
echo "acquiring IP address via DHCP on $iface..."
udhcpc --quit --now -i $iface -O staticroutes --script ${udhcpcScript} ${udhcpcArgs}
# run DHCP in the background until it acquires an address
udhcpc --quit -i $iface -O staticroutes --script ${udhcpcScript} ${udhcpcArgs} &
done
''

Expand Down

0 comments on commit ac29015

Please sign in to comment.