From 2321f2d55c6742fae0830142023816439ad83690 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Jul 2013 23:35:31 +0200 Subject: [PATCH] VM builds: Panic on OOM --- pkgs/build-support/vm/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index 9d76f40afd4d..eb585f2bc501 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -80,6 +80,8 @@ rec { mount -t proc none /proc mount -t sysfs none /sys + echo 2 > /proc/sys/vm/panic_on_oom + for o in $(cat /proc/cmdline); do case $o in mountDisk=1)