Fix PREINIT 10-second timeout killing apply.sh before patches land

Registers the boot hook with timeout:120 so TrueNAS gives apply.sh
two minutes instead of the default ten seconds.  Also consolidates
apply.sh Python subprocess count from ~8 to 2, cutting startup
overhead from ~12-16s to ~2-4s.

Bumps all scripts to v0.0.3.
This commit is contained in:
2026-06-22 15:40:54 +00:00
parent c8de9971e7
commit ee190f558f
6 changed files with 120 additions and 123 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ import sys
import urllib.error
import urllib.request
__version__ = "0.0.2"
__version__ = "0.0.3"
_PATCH_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
_STATUS_FILE = os.path.join(_PATCH_DIR, "hook_status.json")