| Summary: | /boot/loader's panic reboots before user can read message | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Jonathan Mini <mini> |
| Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 5.0-CURRENT | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->closed Committed, thanks. |
panic() in /boot/loader will emit a panic message and reboot immediately, which makes it impossible to read the message unless you are using a serial console. Fix: Apply this patch: + printf("--> Press a key on the console to reboot <--\n"); + getchar(); + printf("Rebooting...\n"); + exit(1); }--9eIHEWzIAWAvCSc3Brl5CzM2HaBxlYeCVm1BawIWTw3X9jag Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" Index: panic.c =================================================================== RCS file: /usr/FreeBSD/src/sys/boot/common/panic.c,v retrieving revision 1.5 diff -c -r1.5 panic.c *** panic.c 1999/08/28 00:39:51 1.5 --- panic.c 2001/11/28 20:08:32 *************** *** 50,54 **** --- 50,58 ---- va_end(ap); printf("\n"); How-To-Repeat: The easiest way to panic the loader at the moment is to type this script: 0 0 fclose fclose