mirror of
https://github.com/systemd/systemd.git
synced 2025-08-30 05:49:54 +03:00
mkosi: Override /sbin/init in minimal-base
Required for TEST-13-NSPAWN.
This commit is contained in:
11
mkosi.images/minimal-base/mkosi.postinst
Executable file
11
mkosi.images/minimal-base/mkosi.postinst
Executable 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"
|
Reference in New Issue
Block a user