Files
Vetting/live-image/mkosi.postinst
T
josh 4dda1dad83
CI / Lint + build + test (push) Successful in 1m38s
Release / release (push) Failing after 1m4s
live-image: mark mkosi.postinst executable in git index
mkosi refuses to run a non-executable postinst. git was tracking it
as 100644 because it was added from Windows (no POSIX exec bit on the
FS), so CI saw a non-executable file even though WSL/Linux had been
treating it fine locally. Same fix applied earlier to install.sh +
pxe-setup.sh.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 02:41:40 -04:00

16 lines
680 B
Bash
Executable File

#!/bin/sh
# mkosi postinst: install the vetting-agent binary and its systemd unit
# into the image. The binary must already be built for linux-amd64 at
# repo root under bin/vetting-agent.linux-amd64 (the top-level Makefile
# does this via `make agent-linux`).
set -eu
AGENT_BIN="${SRCDIR:-..}/bin/vetting-agent.linux-amd64"
install -D -m 0755 "$AGENT_BIN" "$BUILDROOT/usr/local/sbin/vetting-agent"
install -D -m 0644 "$SRCDIR/mkosi.skeleton/etc/systemd/system/vetting-agent.service" \
"$BUILDROOT/etc/systemd/system/vetting-agent.service"
ln -sf /etc/systemd/system/vetting-agent.service \
"$BUILDROOT/etc/systemd/system/multi-user.target.wants/vetting-agent.service"