From 2fb201871bef351e59810a941536e8230db1a374 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Thu, 18 Feb 2010 13:09:49 +0000 Subject: [PATCH] Running the guest additions build in a chroot environment will not install the kernel modules. Removing the ownership attributes might prevents this svn path=/nixpkgs/trunk/; revision=20097 --- .../virtualization/virtualbox/guest-additions/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix b/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix index a793477dff8e..a27210ebd241 100644 --- a/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix +++ b/pkgs/applications/virtualization/virtualbox/guest-additions/default.nix @@ -101,10 +101,11 @@ stdenv.mkDerivation { cd $i kernelVersion=$(cd ${kernel}/lib/modules; ls) export MODULE_DIR=$out/lib/modules/$kernelVersion/misc - ensureDir $MODULE_DIR + sed -i -e "s|-o root||g" \ + -e "s|-g root||g" Makefile make install cd .. - done + done ''; meta = {