mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
Removed all root ownership stuff, so that the kernel modules will install in a chroot environment
svn path=/nixpkgs/trunk/; revision=20103
This commit is contained in:
parent
50a513f515
commit
3b65d90edf
@ -54,9 +54,16 @@ stdenv.mkDerivation {
|
|||||||
# Install kernel module
|
# Install kernel module
|
||||||
cd src
|
cd src
|
||||||
kernelVersion=$(cd ${kernel}/lib/modules; ls)
|
kernelVersion=$(cd ${kernel}/lib/modules; ls)
|
||||||
ensureDir $out/lib/modules/$kernelVersion/misc
|
|
||||||
export MODULE_DIR=$out/lib/modules/$kernelVersion/misc
|
export MODULE_DIR=$out/lib/modules/$kernelVersion/misc
|
||||||
ensureDir $MODULE_DIR
|
|
||||||
|
# Remove root ownership stuff, since this does not work in a chroot environment
|
||||||
|
for i in `find . -name Makefile`
|
||||||
|
do
|
||||||
|
sed -i -e "s|-o root||g" \
|
||||||
|
-e "s|-g root||g" $i
|
||||||
|
done
|
||||||
|
|
||||||
|
# Install kernel modules
|
||||||
make install
|
make install
|
||||||
|
|
||||||
# Create wrapper script
|
# Create wrapper script
|
||||||
|
Loading…
Reference in New Issue
Block a user