From 253fa03ea93550f2c8659cdfcd436e089d8fd78b Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 25 Jun 2022 17:11:34 +0000 Subject: [PATCH] nixosTests.virtualbox.net-hostonlyif: use dhcpcd dhclient is no longer built by default in the dhcp package, so this test has been broken since that change was made. To fix, switch to dhcpcd. dhcpcd insists on writing into /var/run, so we need to ensure that exists. Fixes: a2c379d4b6d ("dhcp: make client and relay component optional") --- nixos/tests/virtualbox.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index 1fd2f23b3691..08a26a2f0d3d 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -17,7 +17,8 @@ let #!${pkgs.runtimeShell} -xe export PATH="${lib.makeBinPath [ pkgs.coreutils pkgs.util-linux ]}" - mkdir -p /run/dbus + mkdir -p /run/dbus /var + ln -s /run /var cat > /etc/passwd <