feat: add /host-sys volume mount and HOST_SYS_PATH environment variable for sysfs serial fallback and SMART health detection

Add HOST_SYS_PATH=/host-sys to .env.example and app.py config with /host-sys default. Update _device_serial() to check HOST_SYS_PATH/class/block and HOST_SYS_PATH/block before fallback /sys paths for serial reads. Update raid_status() SMART regex to match both "SMART overall-health self-assessment test result" and "SMART Health Status" with case-insensitive flag for NVMe/SSD compatibility. Add /
This commit is contained in:
nessi committed 2026-08-16 12:14:10 +02:00
1 parent f7638dd5d5
commit 10eb3a4191
3 files changed
+11 -2

No files matched your search

+1
View File
@@ -37,4 +37,5 @@ RAID_DEVICE=/dev/md127
STORAGE_CACHE_SECONDS=900
# Optional: SMART-Abfragen aktivieren (benötigt Zugriff auf Host-Devices)
SMART_ENABLED=false
HOST_SYS_PATH=/host-sys
LOG_LEVEL=INFO