mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
runInLinuxVM: pkgs.linux -> kernel
There is a function params `kernel' intended to specify which kernel to use. It defaults to `pkgs.linux`. But when we override `kernel', compiling and using two kernels seems not to be the intendend bevavior.
This commit is contained in:
parent
2564e780b5
commit
e64a551603
@ -162,7 +162,7 @@ rec {
|
||||
fi
|
||||
|
||||
# Set up automatic kernel module loading.
|
||||
export MODULE_DIR=${linux}/lib/modules/
|
||||
export MODULE_DIR=${kernel}/lib/modules/
|
||||
${coreutils}/bin/cat <<EOF > /run/modprobe
|
||||
#! /bin/sh
|
||||
export MODULE_DIR=$MODULE_DIR
|
||||
@ -315,7 +315,7 @@ rec {
|
||||
name = "extract-file";
|
||||
buildInputs = [ utillinux ];
|
||||
buildCommand = ''
|
||||
ln -s ${linux}/lib /lib
|
||||
ln -s ${kernel}/lib /lib
|
||||
${kmod}/bin/modprobe loop
|
||||
${kmod}/bin/modprobe ext4
|
||||
${kmod}/bin/modprobe hfs
|
||||
@ -340,7 +340,7 @@ rec {
|
||||
name = "extract-file-mtd";
|
||||
buildInputs = [ utillinux mtdutils ];
|
||||
buildCommand = ''
|
||||
ln -s ${linux}/lib /lib
|
||||
ln -s ${kernel}/lib /lib
|
||||
${kmod}/bin/modprobe mtd
|
||||
${kmod}/bin/modprobe mtdram total_size=131072
|
||||
${kmod}/bin/modprobe mtdchar
|
||||
|
Loading…
Reference in New Issue
Block a user