1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-10 05:18:17 +03:00

mkosi: Override /sbin/init in minimal-base

Required for TEST-13-NSPAWN.
This commit is contained in:
Daan De Meyer 2024-04-29 13:40:43 +02:00
parent 27f166c523
commit 695ebbaf7f

View File

@ -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" <<EOF
#!/bin/bash
echo "Hello from dummy init, beautiful day, innit?"
ip link
EOF
chmod +x "$BUILDROOT/sbin/init"