mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 13:59:40 +00:00
Major kiosk mode rewrite to fix boot failures on both VMs and hardware:
New secubox-kiosk-launcher script that handles:
- Dynamic UID detection (no more hardcoded UID 1000)
- Proper dependency waiting (nginx, network, dummy0)
- User creation if missing
- Fallback URL handling (primary -> localhost)
- VT setup without race conditions
Fixed systemd services:
- Added proper After= dependencies (nginx, networkd, firstboot)
- Removed problematic chvt command (let X11 handle VT)
- Increased TimeoutStartSec to 180s for slow hardware
- Added StartLimitInterval/Burst for restart protection
Simplified xinitrc/start-kiosk.sh:
- Removed redundant wait loops (launcher handles this)
- Added error suppression for headless environments
- Added logging via logger
Build script updates:
- Copy kiosk-launcher and wayland service to images
- Removed inline service definition (use systemd/ files)
Fixes: Kiosk blank screen, race conditions, UID mismatch,
missing dependencies, VT switching failures
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| secubox-cmdline-handler | ||
| secubox-kiosk-launcher | ||
| secubox-kiosk-setup | ||
| secubox-net-detect | ||