Fix kiosk startup

This commit is contained in:
Audiobuzz
2026-06-19 11:58:41 +00:00
parent 98c71474d3
commit 9f7d8d13f4
3 changed files with 18 additions and 11 deletions
+4 -2
View File
@@ -394,9 +394,11 @@ build {
"chmod 0644 /etc/kiosk/kiosk.env",
# Label the new files so they survive into the enforcing erofs.
"restorecon -R /usr/local/bin/kiosk-session /etc/systemd/system/kiosk.service /etc/pam.d/kiosk /etc/xdg/weston /etc/kiosk /etc/chromium /etc/chromium-browser",
# Boot graphical and start the kiosk (replaces the tty1 getty).
# Enable the kiosk on multi-user.target (its [Install] WantedBy) so it
# starts on a normal boot and takes tty1 from the getty (Conflicts=). No
# set-default graphical.target: the kiosk needs no display-manager target,
# and relying on graphical.target left it dead at boot.
"systemctl enable kiosk.service",
"systemctl set-default graphical.target",
"rm -rf /tmp/kiosk",
"echo \"==> kiosk enabled: $KIOSK_URL\"",
]