#!/bin/sh # mkosi postinst: enable the vetting-agent service. The binary lands in # the image via mkosi.extra/ (staged by the live-image Makefile from # ../bin/vetting-agent.linux-amd64); the service unit lands via # mkosi.skeleton/. All we need here is the multi-user.target symlink. set -eu mkdir -p "$BUILDROOT/etc/systemd/system/multi-user.target.wants" ln -sf /etc/systemd/system/vetting-agent.service \ "$BUILDROOT/etc/systemd/system/multi-user.target.wants/vetting-agent.service"