helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
805 stars 59 forks source link

Make the system stop auto-rebooting for 10 seconds when a core crashes at boot time. #461

Closed louies0623 closed 10 months ago

louies0623 commented 1 year ago

Let the system stop automatically restarting for 10 seconds when the core crashes during startup, so that users can have time to record startup errors, and you can analyze the problem. e.g BSOD

https://github.com/helloSystem/ISO/issues/455 https://github.com/helloSystem/ISO/issues/457 https://github.com/helloSystem/ISO/issues/413 https://github.com/helloSystem/ISO/issues/335

probonopd commented 1 year ago

You can change the following line to the /etc/sysctl.conf file to increase the number of seconds:

kern.panic_reboot_wait_time=600

Does this work for you?

probonopd commented 10 months ago

We have this: https://github.com/helloSystem/ISO/blob/b80e110fca87277dee732979a711e6a209e01ecd/overlays/boot/boot/init_script#L153

So, when booting in verbose or single user mode, it should wait 30 seconds before rebooting. Please comment here if it doesn't work.

louies0623 commented 10 months ago

In A1278 #335, it will not restart immediately when there is self-suspend for the first time, but it will restart immediately when it is used next time. Version:0.9.0