reboot on kernel panic

I don’t remember how I found this, but I’ll pass it along.  One thing you can add when booting your kernel is panic=<integer> to tell the kernel to reboot the system if it hits a kernel panic, after <integer> number of seconds.

It comes in pretty handy for me when dealing with booting over the network, and I forgot to setup my DHCP or TFTP or kernel incorrectly… gives you a chance to fix it in the rebooting interim if its something minor.

Of course, you probably wouldn’t want that on your kernel boot by default, since it could get stuck in a reboot loop if you really screwed something up.

1 Comment

Filed under Gentoo

One response to “reboot on kernel panic

  1. Nick

    Hey, cool! I’ve been bitten by this with my netboot Mythbox before. Thanks for passing it along🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s