Recently, while building a new system, I had the case that init was not found after boot. Problem was that the message at line 801 of sys/kern/init_main.c was displayed and disappeared so fast that I had to *film* the boot sequence and look at it in slow-motion to find the cause of the reboot. Would it be possible to add a short wait (2-3 seconds) before the panic() call ? Film available on request 8-}
Hum...should you not disable "reboot on panic" to know/understand what is going on? Introducing a delay just to see the panic string doesn't seem like a good idea to me.
Is this what you want, from sys/conf/NOTES: # Set the amount of time (in seconds) the system will wait before # rebooting automatically when a kernel panic occurs. If set to (-1), # the system will wait indefinitely until a key is pressed on the # console. options PANIC_REBOOT_WAIT_TIME=16
The crash and clear screen was so fast that I did not even see that it was a panic. Most other panics had the message about "press a button or we'll reboot in 15 seconds". That one had not, and so I failed to suspect a panic and needed to film it. Film at http://opsec.eu/backup/20140621042.mp4 Is PANIC_REBOOT_WAIT_TIME not set to 15 seconds in general ?
http://svnweb.freebsd.org/base?view=revision&revision=260431 provides a new sysctl / loader tunable kern.panic_reboot_wait_time which covers this use-case.
For bugs matching the following conditions: - Status == In Progress - Assignee == "bugs@FreeBSD.org" - Last Modified Year <= 2017 Do - Set Status to "Open"
Assign to committer that resolved (in base r258893 base r258956 and MFC'd (stable/10) in base r260431