Blame 0019-base-dracut-lib.sh-changed-kmgs-log-levels.patch

Harald Hoyer d387bf
From 79471f365e5f276ac5463404fbe739ddb2e12465 Mon Sep 17 00:00:00 2001
Harald Hoyer d387bf
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer d387bf
Date: Thu, 31 Mar 2011 13:12:38 +0200
Harald Hoyer d387bf
Subject: [PATCH] base/dracut-lib.sh: changed kmgs log levels
Harald Hoyer d387bf
Harald Hoyer d387bf
New kernel/dmesg understands syslog levels, so we log with "+24" to indicate
Harald Hoyer d387bf
that dracut is a daemon (current init).
Harald Hoyer d387bf
---
Harald Hoyer d387bf
 modules.d/99base/dracut-lib.sh |    8 ++++----
Harald Hoyer d387bf
 1 files changed, 4 insertions(+), 4 deletions(-)
Harald Hoyer d387bf
Harald Hoyer d387bf
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
Harald Hoyer d387bf
index 37b3e76..930138a 100755
Harald Hoyer d387bf
--- a/modules.d/99base/dracut-lib.sh
Harald Hoyer d387bf
+++ b/modules.d/99base/dracut-lib.sh
Harald Hoyer d387bf
@@ -236,8 +236,8 @@ source_conf() {
Harald Hoyer d387bf
 
Harald Hoyer d387bf
 die() {
Harald Hoyer d387bf
     {
Harald Hoyer d387bf
-        echo "<1>dracut: FATAL: $@";
Harald Hoyer d387bf
-        echo "<1>dracut: Refusing to continue";
Harald Hoyer d387bf
+        echo "<24>dracut: FATAL: $@";
Harald Hoyer d387bf
+        echo "<24>dracut: Refusing to continue";
Harald Hoyer d387bf
     } > /dev/kmsg
Harald Hoyer d387bf
 
Harald Hoyer d387bf
     { 
Harald Hoyer d387bf
@@ -260,14 +260,14 @@ check_quiet() {
Harald Hoyer d387bf
 
Harald Hoyer d387bf
 warn() {
Harald Hoyer d387bf
     check_quiet
Harald Hoyer d387bf
-    echo "<4>dracut Warning: $@" > /dev/kmsg
Harald Hoyer d387bf
+    echo "<28>dracut Warning: $@" > /dev/kmsg
Harald Hoyer d387bf
     [ "$DRACUT_QUIET" != "yes" ] && \
Harald Hoyer d387bf
         echo "dracut Warning: $@" >&2
Harald Hoyer d387bf
 }
Harald Hoyer d387bf
 
Harald Hoyer d387bf
 info() {
Harald Hoyer d387bf
     check_quiet
Harald Hoyer d387bf
-    echo "<6>dracut: $@" > /dev/kmsg
Harald Hoyer d387bf
+    echo "<30>dracut: $@" > /dev/kmsg
Harald Hoyer d387bf
     [ "$DRACUT_QUIET" != "yes" ] && \
Harald Hoyer d387bf
         echo "dracut: $@" 
Harald Hoyer d387bf
 }