secubox-deb/.github
CyberMind-FR 94da816b51 fix(rpi-build): implement --kiosk flag + wire it on rpi400 in CI (closes #423)
The --kiosk flag in image/build-rpi-usb.sh was parsed but never acted on
(INCLUDE_KIOSK toggled but no install block existed), so the rpi400 image
shipped without chromium / X / kiosk service. The boot menu's apply_mode
"kiosk" branch even references a secubox-kiosk.service that was never
created. Adding all the missing pieces:

- New Step 5.4 block (gated by INCLUDE_KIOSK=1):
  - apt install xserver-xorg xinit openbox chromium x11-xserver-utils
  - install image/kiosk/secubox-kiosk.sh → /usr/share/secubox/kiosk/
  - install image/kiosk/xinitrc → /root/.xinitrc
  - create /etc/systemd/system/secubox-kiosk.service (startx on vt7,
    Conflicts with getty@tty7; matches apply_mode's expected unit name)
  - seed /var/lib/secubox/boot-mode = "kiosk" so first boot enters kiosk
  - set default systemd target to graphical.target + enable the unit

- CI build-all-live-usb.yml: add `extra_args: "--kiosk"` to the rpi400
  matrix entry and append `${{ matrix.extra_args }}` to the build invocation.
  Pi 400 = keyboard + HDMI, kiosk-by-default is the obvious user-facing
  shape; other platforms keep their headless default.
2026-05-30 10:04:44 +02:00
..
workflows fix(rpi-build): implement --kiosk flag + wire it on rpi400 in CI (closes #423) 2026-05-30 10:04:44 +02:00