Re: panic options
>> There is a call to panic() if the kernel detects that there is no >> console device found, I would like to make this call to it just >> reboot without dropping into ddb. > Well. Not completely what you ask for, but... > sysctl -w ddb.onpanic=0 (or even -1) Well, notice that the original post writes of panicking if "there is no console device found", which sounds to me like something that happens during boot, much earlier than /etc/sysctl.conf can affect. I'd say, rather, DDB_ONPANIC=0 in the kernel config and then ddb.onpanic=1 during boot. /~\ The ASCII Mouse \ / Ribbon Campaign X Against HTMLmo...@rodents-montreal.org / \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Re: panic options
On 2023-09-12 23:55, Robert Swindells wrote: Is there any way to get panic(9) to behave differently in some places than others? There is a call to panic() if the kernel detects that there is no console device found, I would like to make this call to it just reboot without dropping into ddb. The amdgpu driver fails to initialize about 9 times in 10 for me so would like to reduce the amount of typing needed. Well. Not completely what you ask for, but... sysctl -w ddb.onpanic=0 (or even -1) You could place that in /etc/sysctl.conf as well. See sysctl(7) for some more details. Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: b...@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol
Re: panic options
r...@fdy2.co.uk (Robert Swindells) writes: >There is a call to panic() if the kernel detects that there is no >console device found, I would like to make this call to it just reboot >without dropping into ddb. Not without modifications. You could include the nullcons (i.e. boot without console) and detect the situation and reboot later in an rc script.
panic options
Is there any way to get panic(9) to behave differently in some places than others? There is a call to panic() if the kernel detects that there is no console device found, I would like to make this call to it just reboot without dropping into ddb. The amdgpu driver fails to initialize about 9 times in 10 for me so would like to reduce the amount of typing needed.