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:
parent
27f166c523
commit
695ebbaf7f
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"
|
Loading…
Reference in New Issue
Block a user