base/dracut-lib.sh: changed kmgs log levels
authorHarald Hoyer <harald@redhat.com>
Thu, 31 Mar 2011 11:12:38 +0000 (13:12 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 31 Mar 2011 11:12:38 +0000 (13:12 +0200)
New kernel/dmesg understands syslog levels, so we log with "+24" to indicate
that dracut is a daemon (current init).

modules.d/99base/dracut-lib.sh

index 37b3e76..930138a 100755 (executable)
@@ -236,8 +236,8 @@ source_conf() {
 
 die() {
     {
-        echo "<1>dracut: FATAL: $@";
-        echo "<1>dracut: Refusing to continue";
+        echo "<24>dracut: FATAL: $@";
+        echo "<24>dracut: Refusing to continue";
     } > /dev/kmsg
 
     { 
@@ -260,14 +260,14 @@ check_quiet() {
 
 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: $@" 
 }