From 695ebbaf7fbbcfb9128e2f135efe057fb8558cd9 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 29 Apr 2024 13:40:43 +0200 Subject: mkosi: Override /sbin/init in minimal-base Required for TEST-13-NSPAWN. --- mkosi.images/minimal-base/mkosi.postinst | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 mkosi.images/minimal-base/mkosi.postinst diff --git a/mkosi.images/minimal-base/mkosi.postinst b/mkosi.images/minimal-base/mkosi.postinst new file mode 100755 index 0000000000..c76fb0a011 --- /dev/null +++ b/mkosi.images/minimal-base/mkosi.postinst @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +# We don't use mkosi.extra because /usr/sbin could be a symlink and cp doesn't handle that properly until +# coreutils 9.5 or newer. +cat >"$BUILDROOT/sbin/init" <