summary refs log tree commit diff
path: root/nixos/tests/virtualbox.nix
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-08-04 03:03:24 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-08-04 03:03:24 +0200
commit86b695a18e2a228b88387246107340a1bf6ae275 (patch)
tree0475095b25de830a35fb1965dbbfacf520cd5fdd /nixos/tests/virtualbox.nix
parenta26edf0f77b670e231001815858cb2348d8a381f (diff)
downloadnixpkgs-86b695a18e2a228b88387246107340a1bf6ae275.tar
nixpkgs-86b695a18e2a228b88387246107340a1bf6ae275.tar.gz
nixpkgs-86b695a18e2a228b88387246107340a1bf6ae275.tar.bz2
nixpkgs-86b695a18e2a228b88387246107340a1bf6ae275.tar.lz
nixpkgs-86b695a18e2a228b88387246107340a1bf6ae275.tar.xz
nixpkgs-86b695a18e2a228b88387246107340a1bf6ae275.tar.zst
nixpkgs-86b695a18e2a228b88387246107340a1bf6ae275.zip
vbox-guest: Remove all references to sbin/.
Using $storepath/sbin is deprecated according to commit 98cedb3, so
let's avoid putting anything in .../sbin for the guest additions.

This is a continuation of the initial commit done by @ctheune at
1fb1360, which unfortunately broke VM tests and only changed the path of
the mount.vboxsf helper.

With this commit, the VM test is fixed and I've also verified on my
machine that it is indeed working again.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/tests/virtualbox.nix')
-rw-r--r--nixos/tests/virtualbox.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/tests/virtualbox.nix b/nixos/tests/virtualbox.nix
index f94d219aba6..4895eb134dc 100644
--- a/nixos/tests/virtualbox.nix
+++ b/nixos/tests/virtualbox.nix
@@ -8,7 +8,7 @@ import ./make-test.nix ({ pkgs, ... }: with pkgs.lib; let
         #!${pkgs.stdenv.shell} -xe
         export PATH="${pkgs.coreutils}/bin:${pkgs.utillinux}/bin"
 
-        ${pkgs.linuxPackages.virtualboxGuestAdditions}/sbin/VBoxService
+        ${pkgs.linuxPackages.virtualboxGuestAdditions}/bin/VBoxService
         ${(attrs.vmScript or (const "")) pkgs}
 
         i=0
@@ -39,7 +39,7 @@ import ./make-test.nix ({ pkgs, ... }: with pkgs.lib; let
     ];
 
     boot.initrd.extraUtilsCommands = ''
-      copy_bin_and_libs "${pkgs.linuxPackages.virtualboxGuestAdditions}/sbin/mount.vboxsf"
+      copy_bin_and_libs "${pkgs.linuxPackages.virtualboxGuestAdditions}/bin/mount.vboxsf"
       copy_bin_and_libs "${pkgs.utillinux}/bin/unshare"
       ${(attrs.extraUtilsCommands or (const "")) pkgs}
     '';