You can put "panic=N" on the kernel command line to make the system reboot N seconds after a panic. Is there a config option to specify this (other than the default kernel command line option)?
|
|
There does not seem to be such a config option. The default timeout is 0 which according to http://www.mjmwired.net/kernel/Documentation/kernel-parameters.txt#1898 is "wait forever". The option is defined in kernel/panic.c, you can write a patch that sets the initial value to something different. To hardcode a reboot after 3 seconds, change:
to:
|
|||
|
|
|
From
|
|||||||
|
|
The config file is boot (grub) configuration file itself, since it is a parameter invoked at the boot time and grub cannot be expected to read from some other config file while the filesystem is not mounted. However, that being a initialized setting, the runtime can also be modified through |
|||||
|
