mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-08-17 01:55:30 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73f8a4463b | ||
|
|
11c9984e2a | ||
|
|
e2acd4cb88 | ||
|
|
e4447e0a2a |
@@ -911,6 +911,17 @@ KIOSKSVC
|
||||
chroot "${ROOTFS}" systemctl enable secubox-kiosk.service \
|
||||
|| err "systemctl enable secubox-kiosk.service failed"
|
||||
|
||||
# Belt-and-suspenders: `systemctl enable` under SYSTEMD_OFFLINE in a qemu
|
||||
# chroot doesn't always materialise the WantedBy symlink (observed v2.13.7).
|
||||
# Create it with a *relative* target (matches systemctl's own convention
|
||||
# and resolves correctly both inside the chroot AND from the host's
|
||||
# assertion check — v2.13.8 used an absolute "/etc/..." path which the
|
||||
# host's `[[ -e symlink ]]` could not resolve because the absolute target
|
||||
# doesn't exist on the host fs).
|
||||
install -d "${ROOTFS}/etc/systemd/system/graphical.target.wants"
|
||||
ln -sf "../secubox-kiosk.service" \
|
||||
"${ROOTFS}/etc/systemd/system/graphical.target.wants/secubox-kiosk.service"
|
||||
|
||||
# Build-time assertion (#433): verify EVERY kiosk artefact made it into
|
||||
# the rootfs before Step 7's rsync. If any of these is missing, the .img
|
||||
# would ship without kiosk despite the CI logging "Kiosk mode installed".
|
||||
|
||||
Reference in New Issue
Block a user