Fix kiosk startup
This commit is contained in:
+4
-2
@@ -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\"",
|
||||
]
|
||||
|
||||
@@ -42,4 +42,9 @@ Restart=always
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
# multi-user.target, NOT graphical.target: the kiosk launches weston directly
|
||||
# (no display manager), and multi-user.target is always reached on a normal boot
|
||||
# — graphical.target is only active if it's the default AND nothing blocks it,
|
||||
# which left the kiosk dead at boot (started fine on manual restart). Conflicts=
|
||||
# getty@tty1 still hands tty1 over to the kiosk.
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user