secubox-deb/image/sbin
CyberMind-FR 93475f93a7 fix(kiosk): Fix race conditions and startup failures
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>
2026-04-01 10:11:34 +02:00
..
secubox-cmdline-handler fix(kiosk): Start kiosk service explicitly after creating marker 2026-03-30 16:46:17 +02:00
secubox-kiosk-launcher fix(kiosk): Fix race conditions and startup failures 2026-04-01 10:11:34 +02:00
secubox-kiosk-setup fix(kiosk): Fix race conditions and startup failures 2026-04-01 10:11:34 +02:00
secubox-net-detect fix(live-usb): Fix hanging boot services 2026-03-30 11:23:45 +02:00