git.iko.soy/typeable/nixpkgs
on master help sign in
virtualbox-{systemd-detect-virt,net-hostonlyif} test: fix dbus socket dir

The test complains[1][2] that Failed to start message bus: Failed to bind socket "/run/dbus/system_bus_socket": No such file or directory In 639e5401ff51d4c0075b5ceffcbdbfec64c67db3, the dbus socket dir is set to `/run/dbus`; in the test vm `/var/run/dbus` is used, but the standard `/run -> /var/run` link is typically not created until stage 2 init, not in the minimal init used here. Thus, dbus fails to run within the test environment . Fix by changing `/var/run/dbus` to simply `/run/dbus`. [1]: https://hydra.nixos.org/build/42534725 [2]: https://hydra.nixos.org/build/42523834

commitc86fe2224e09b2ebb30c98de0b17b72147d7d226 authorJoachim Fasting <joachifm@fastmail.fm> dateMon 24 Oct 2016, 12:43 (10 years ago) parent6dc6147
1 file changed+2−2
nixos/tests/virtualbox.nix+2−2
nixos/tests/virtualbox.nix+2−2
@@ -11,10 +11,10 @@ let
1111 #!${pkgs.stdenv.shell} -xe
1212 export PATH="${lib.makeBinPath [ pkgs.coreutils pkgs.utillinux ]}"
1313
14− mkdir -p /var/run/dbus
14+ mkdir -p /run/dbus
1515 cat > /etc/passwd <<EOF
1616 root:x:0:0::/root:/bin/false
17− messagebus:x:1:1::/var/run/dbus:/bin/false
17+ messagebus:x:1:1::/run/dbus:/bin/false
1818 EOF
1919 cat > /etc/group <<EOF
2020 root:x:0: