summaryrefslogtreecommitdiffstats
path: root/mkosi.images/minimal-base/mkosi.postinst
blob: c76fb0a011f0c32d4e4a8393fbd7cb973ee74635 (plain)
1
2
3
4
5
6
7
8
9
10
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"