os-boot-delay, but 120 seconds or more?

Started by NetGobbler, March 29, 2022, 05:06:17 AM

Previous topic - Next topic
Does anyone know how to impliment a boot delay for opnsense but in excess of at least 60 seconds.
I lose power a lot at home (working on this) but if my modem, wifiap and opnsense all boot at the same time (power restored) I have no internet.

If I shut it off on its own, reboot it a few minutes after modem is up, all is good.

So a boot delay would be very handy for me.

wouldn't you be better off with a UPS? Your filesystem is going to get corrupted from sudden power cuts without a graceful shutdown.

Bart...

os-boot-delay emulates an ancient requirement... I think specifically for older PCEngines hardware.

Basically it sets the following tunable: kern.cam.boot_delay="10000"

But you can always deinstall it and add "kern.cam.boot_delay" with a value of the required milliseconds to delay boot from the GUI nowadays.

That being said the plugin should probably be retired in 22.7.


Cheers,
Franco
"AI has absolutely reduced the cost of creating technical debt." -- ChatGPT

@franco as far as I can remember it was for some old flash storages that were not ready when the system tried to boot.