mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
Use Linux 3.9 for VM builds
This seems to fix CIFS hangs like: http://hydra.nixos.org/build/4916655
This commit is contained in:
parent
6fb4c62f25
commit
9df603b300
@ -1,9 +1,9 @@
|
|||||||
{ pkgs
|
{ pkgs
|
||||||
, linuxKernel ? pkgs.linux
|
, linuxKernel ? pkgs.linux_3_9
|
||||||
, img ? "bzImage"
|
, img ? "bzImage"
|
||||||
, rootModules ?
|
, rootModules ?
|
||||||
[ "cifs" "virtio_net" "virtio_pci" "virtio_blk" "virtio_balloon" "nls_utf8" "ext2" "ext3"
|
[ "cifs" "virtio_net" "virtio_pci" "virtio_blk" "virtio_balloon" "nls_utf8" "ext2" "ext3"
|
||||||
"ext4" "unix" "hmac" "md4" "ecb" "des_generic"
|
"ext4" "unix" "hmac" "md4" "ecb" "des_generic" "sha256"
|
||||||
]
|
]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -98,7 +98,6 @@ rec {
|
|||||||
args=
|
args=
|
||||||
case $i in
|
case $i in
|
||||||
*/cifs.ko)
|
*/cifs.ko)
|
||||||
args="CIFSMaxBufSize=4194304"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
echo "loading module $(basename $i .ko)"
|
echo "loading module $(basename $i .ko)"
|
||||||
@ -123,14 +122,14 @@ rec {
|
|||||||
|
|
||||||
echo "mounting Nix store..."
|
echo "mounting Nix store..."
|
||||||
mkdir -p /fs/nix/store
|
mkdir -p /fs/nix/store
|
||||||
mount -t cifs //10.0.2.4/store /fs/nix/store -o guest,sec=none
|
mount -t cifs //10.0.2.4/store /fs/nix/store -o guest,sec=none,sec=ntlm
|
||||||
|
|
||||||
mkdir -p /fs/tmp
|
mkdir -p /fs/tmp
|
||||||
mount -t tmpfs -o "mode=755" none /fs/tmp
|
mount -t tmpfs -o "mode=755" none /fs/tmp
|
||||||
|
|
||||||
echo "mounting host's temporary directory..."
|
echo "mounting host's temporary directory..."
|
||||||
mkdir -p /fs/tmp/xchg
|
mkdir -p /fs/tmp/xchg
|
||||||
mount -t cifs //10.0.2.4/xchg /fs/tmp/xchg -o guest,sec=none
|
mount -t cifs //10.0.2.4/xchg /fs/tmp/xchg -o guest,sec=none,sec=ntlm
|
||||||
|
|
||||||
mkdir -p /fs/proc
|
mkdir -p /fs/proc
|
||||||
mount -t proc none /fs/proc
|
mount -t proc none /fs/proc
|
||||||
|
Loading…
Reference in New Issue
Block a user