From c5955e5474e7cd20d3383f1fad9288ad9d3d3f1c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 3 Nov 2011 20:11:11 +0000 Subject: [PATCH] * In EC2 instances, a kernel panic should cause a reboot, and a problem in stage 1 should cause a panic. (Actually, the latter should probably kill the instance since we can't repair it anyway...) svn path=/nixos/trunk/; revision=30215 --- modules/profiles/headless.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/profiles/headless.nix b/modules/profiles/headless.nix index 08519d58e8ae..d607d6700c6e 100644 --- a/modules/profiles/headless.nix +++ b/modules/profiles/headless.nix @@ -7,4 +7,7 @@ boot.initrd.enableSplashScreen = false; services.ttyBackgrounds.enable = false; services.mingetty.ttys = [ ]; + + # Since we can't manually respond to a panic, just reboot. + boot.kernelParams = [ "panic=1" "stage1panic=1" ]; }