mirror of
https://github.com/systemd/systemd
synced 2025-10-05 16:03:15 +02:00
mkosi: support the case /sbin/init is an absolute symbolic link
In that case, the link points to the host file, thus we cannot update the file.
This commit is contained in:
@@ -3,6 +3,8 @@ 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.
|
||||
mkdir -p "$BUILDROOT/sbin"
|
||||
rm -f "$BUILDROOT/sbin/init"
|
||||
cat >"$BUILDROOT/sbin/init" <<EOF
|
||||
#!/bin/bash
|
||||
echo "Hello from dummy init, beautiful day, innit?"
|
||||
|
Reference in New Issue
Block a user