git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/tests/vbox: Fix invocation of dbus

VBoxService needs dbus in order to work properly, which failed to start up so far, because it was searching in /run/current-system/sw for its configuration files. We now no longer run with the --system flag but specify the configuration file directly instead. This fixes at least the "simple-gui" test and probably the others as well, which I haven't tested yet. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commit3b8a2a793c63d54229af5fe7eb1e11bc12720919 authoraszlig <aszlig@redmoonstudios.org> dateThu 26 May 2016, 16:45 (11 years ago) parent3fd3911
1 file changed+4−4
nixos/tests/virtualbox.nix+4−4
nixos/tests/virtualbox.nix+4−4
@@ -11,7 +11,7 @@ let
1111 #!${pkgs.stdenv.shell} -xe
1212 export PATH="${pkgs.coreutils}/bin:${pkgs.utillinux}/bin"
1313
14− mkdir -p /etc/dbus-1 /var/run/dbus
14+ mkdir -p /var/run/dbus
1515 cat > /etc/passwd <<EOF
1616 root:x:0:0::/root:/bin/false
1717 messagebus:x:1:1::/var/run/dbus:/bin/false
@@ -20,9 +20,9 @@ let
2020 root:x:0:
2121 messagebus:x:1:
2222 EOF
23− cp -v "${pkgs.dbus.daemon}/etc/dbus-1/system.conf" \
24− /etc/dbus-1/system.conf
25− "${pkgs.dbus.daemon}/bin/dbus-daemon" --fork --system
23+
24+ "${pkgs.dbus.daemon}/bin/dbus-daemon" --fork \
25+ --config-file="${pkgs.dbus.daemon}/share/dbus-1/system.conf"
2626
2727 ${guestAdditions}/bin/VBoxService
2828 ${(attrs.vmScript or (const "")) pkgs}