Hey Arwen, your approach works very fine and for instance, to me I just put it down to 1 second in order to speed up boot speed because I dont let my NAS 24x7 online.
I wanted to make the change without the init/shutdown script and the lack of an editor of GRUB options by TrueNas is what makes this all difficult, maybe someday they will add it into the GUI.
I did in a different and crazy approach:
-
Remount USR as RW
sudo mount -o remount,rw,nodev,noatime,xattr,noacl,casesensitive boot-pool/ROOT/24.10.2/usr /usr -
Change the python script that makes the truenas.cfg /grub.cfg file:
pico /usr/local/bin/truenas-grub.py -
In this file you can see the timeout command line and set it to what is needed
-
After reboot it two times (to allow the script to execute somewhere) then we are done.
-
It might resist to product updates if the updates does not change the phyton script
Take care all who is reading it!