/usr/lib/dracut/modules.d/99base/loginit.sh is in dracut 040+1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/bin/sh
# turn off debugging
set +x
QUIET=$1
printf -- "$$" > /run/initramfs/loginit.pid
[ -e /dev/kmsg ] && exec 5>/dev/kmsg || exec 5>/dev/null
exec 6>/run/initramfs/init.log
while read line; do
if [ "$line" = "DRACUT_LOG_END" ]; then
rm -f -- /run/initramfs/loginit.pipe
exit 0
fi
echo "<31>dracut: $line" >&5
# if "quiet" is specified we output to /dev/console
[ -n "$QUIET" ] || echo "dracut: $line"
echo "$line" >&6
done
|