]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
get rid of rdnetdebug
authorHarald Hoyer <harald@redhat.com>
Wed, 19 May 2010 07:37:20 +0000 (09:37 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 19 May 2010 07:38:09 +0000 (09:38 +0200)
set PS4 and output to /dev/initlog.pipe

dracut.8
modules.d/40network/dhclient-script
modules.d/95fcoe/fcoe-up
modules.d/98syslog/parse-syslog-opts.sh
modules.d/98syslog/rsyslogd-start.sh
modules.d/98syslog/syslog-cleanup.sh
modules.d/98syslog/syslog-genrules.sh
modules.d/99base/dracut-lib.sh

index 404c2a13d63a3dc52b968f00ff26c371eb55862f..0946b9955ae3923be73ed4938b06efe3ef8f2de6 100644 (file)
--- a/dracut.8
+++ b/dracut.8
@@ -165,9 +165,6 @@ set udev to loglevel info
 .TP
 .B rdudevdebug
 set udev to loglevel debug
-.TP
-.B rdnetdebug
-debug network scripts in dracut. Output is written to /tmp/
 
 .SS I18N
  e.g.
index 3efbc2d328425b8187afa7eee15000bdb2f5242c..1f5c4c0a8f836bcb298c9fabd8167132bf36c7f7 100755 (executable)
@@ -44,14 +44,10 @@ setup_interface() {
 
 PATH=$PATH:/sbin:/usr/sbin
 
+export PS4="dhclient.$interface.$$ + "
+exec >>/dev/initlog.pipe 2>>/dev/initlog.pipe
 . /lib/dracut-lib.sh
 
-if getarg rdnetdebug ; then
-    exec >/tmp/dhclient.$interface.$$.out
-    exec 2>>/tmp/dhclient.$interface.$$.out
-    set -x
-fi
-
 # We already need a set netif here
 netif=$interface
 
index 47a7e8d44730102bc3df14489cbd4cd887364231..9954e0a6bb339d1c91ea470fea31021be595620a 100755 (executable)
@@ -11,6 +11,10 @@ PATH=$PATH:/sbin:/usr/sbin
 # Huh? Missing arguments ??
 [ -z "$1" -o -z "$2" ] && exit 1
 
+export PS4="fcoe-up.$1.$$ + "
+exec >>/dev/initlog.pipe 2>>/dev/initlog.pipe
+. /lib/dracut-lib.sh
+
 netif=$1
 dcb=$2
 
index 0ec3015db359dbc25f04d4824d435037298c201f..438ab4b4e5a08245cc3231ec8b5f0222bba74cb1 100755 (executable)
@@ -6,11 +6,7 @@
 #sysloglevel=level  What level has to be logged
 #syslogtype=rsyslog|syslog|syslogng  
 #                   Don't auto detect syslog but set it
-if getarg rdnetdebug ; then
-    exec >/tmp/syslog-parse-opts.$1.$$.out
-    exec 2>>/tmp/syslog-parse-opts.$1.$$.out
-    set -x
-fi
+. /lib/dracut-lib.sh
 
 syslogserver=$(getarg syslog)
 syslogfilters=$(getargs filter)
index abab484be6af15d49a447d8d5b898d0bf5bc5a73..4bfadc15228b221e12aeb183f0218cd847b04834 100755 (executable)
@@ -1,12 +1,7 @@
 #!/bin/sh
 # Triggered by udev and starts rsyslogd with bootparameters
-. /lib/dracut-lib.sh
 
-if getarg rdnetdebug ; then
-    exec >/tmp/rsyslogd-start.$1.$$.out
-    exec 2>>/tmp/rsyslogd-start.$1.$$.out
-    set -x
-fi
+. /lib/dracut-lib.sh
 
 rsyslog_config() {
        local server=$1
index 8fdf21be8325e83852c2233546a16a24756c89d4..4e1c53147a21c4f493817e4062307b252d9e1455 100755 (executable)
@@ -1,13 +1,7 @@
 #!/bin/sh
 # Just cleans up a previously started syslogd
-. /lib/dracut-lib.sh
-
 
-if getarg rdnetdebug ; then
-    exec >/tmp/syslog-cleanup.$1.$$.out
-    exec 2>>/tmp/syslog-cleanup.$1.$$.out
-    set -x
-fi
+. /lib/dracut-lib.sh
 
 if [ -f /tmp/syslog.server ]; then
        read syslogtype < /tmp/syslog.type
index 8d99fb8cadbd3b12fa9389c1cf00e04243a0599c..fb11f44ba32da470deecdc186aad698e8f4921d4 100755 (executable)
@@ -17,12 +17,6 @@ detect_syslog() {
     [ -n "$syslogtype" ]
 }      
 
-if getarg rdnetdebug ; then
-    exec >/tmp/syslog-genrules.$1.$$.out
-    exec 2>>/tmp/syslog-genrules.$1.$$.out
-    set -x
-fi
-
 read syslogtype < /tmp/syslog.type
 if [ -z "$syslogtype" ]; then
        syslogtype=$(detect_syslog)
index e9c2ccce335771c7bc37b7f24c4c5e9a5e5cee0a..96662321e7db286759b6f241186fe157e05eeb4e 100644 (file)
@@ -52,7 +52,7 @@ setdebug() {
     if [ -z "$RDDEBUG" ]; then
         if [ -e /proc/cmdline ]; then
             RDDEBUG=no
-            if getarg rdinitdebug; then
+            if getarg rdinitdebug || getarg rdnetdebug; then
                 RDDEBUG=yes 
             fi
         fi