From 7707c7df7ff1c84a619c35a51a19593debc2d0b3 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 15 Sep 2015 14:14:44 +0200 Subject: [PATCH] tests/virtualbox: Start systemwide DBus in guests. We want to check whether DBus functionality is working, so let's make sure it is running in our mini-initrd. DBus unfortunately requires to have users properly set up and another configuration file other than in ${dbus.daemon}/etc/dbus-1/system.conf, so we do provide that as well. Signed-off-by: aszlig --- nixos/tests/virtualbox.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix index 83a8b2835dc..6b74abf1320 100644 --- a/nixos/tests/virtualbox.nix +++ b/nixos/tests/virtualbox.nix @@ -8,6 +8,19 @@ import ./make-test.nix ({ pkgs, ... }: with pkgs.lib; let #!${pkgs.stdenv.shell} -xe export PATH="${pkgs.coreutils}/bin:${pkgs.utillinux}/bin" + mkdir -p /etc/dbus-1 /var/run/dbus + cat > /etc/passwd < /etc/group <