New kernel/dmesg understands syslog levels, so we log with "+24" to indicate
that dracut is a daemon (current init).
die() {
{
- echo "<1>dracut: FATAL: $@";
- echo "<1>dracut: Refusing to continue";
+ echo "<24>dracut: FATAL: $@";
+ echo "<24>dracut: Refusing to continue";
} > /dev/kmsg
{
warn() {
check_quiet
- echo "<4>dracut Warning: $@" > /dev/kmsg
+ echo "<28>dracut Warning: $@" > /dev/kmsg
[ "$DRACUT_QUIET" != "yes" ] && \
echo "dracut Warning: $@" >&2
}
info() {
check_quiet
- echo "<6>dracut: $@" > /dev/kmsg
+ echo "<30>dracut: $@" > /dev/kmsg
[ "$DRACUT_QUIET" != "yes" ] && \
echo "dracut: $@"
}