parent
91d8394093
commit
e54a84113e
3
dracut.8
3
dracut.8
|
@ -165,9 +165,6 @@ set udev to loglevel info
|
||||||
.TP
|
.TP
|
||||||
.B rdudevdebug
|
.B rdudevdebug
|
||||||
set udev to loglevel debug
|
set udev to loglevel debug
|
||||||
.TP
|
|
||||||
.B rdnetdebug
|
|
||||||
debug network scripts in dracut. Output is written to /tmp/
|
|
||||||
|
|
||||||
.SS I18N
|
.SS I18N
|
||||||
e.g.
|
e.g.
|
||||||
|
|
|
@ -44,14 +44,10 @@ setup_interface() {
|
||||||
|
|
||||||
PATH=$PATH:/sbin:/usr/sbin
|
PATH=$PATH:/sbin:/usr/sbin
|
||||||
|
|
||||||
|
export PS4="dhclient.$interface.$$ + "
|
||||||
|
exec >>/dev/initlog.pipe 2>>/dev/initlog.pipe
|
||||||
. /lib/dracut-lib.sh
|
. /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
|
# We already need a set netif here
|
||||||
netif=$interface
|
netif=$interface
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,10 @@ PATH=$PATH:/sbin:/usr/sbin
|
||||||
# Huh? Missing arguments ??
|
# Huh? Missing arguments ??
|
||||||
[ -z "$1" -o -z "$2" ] && exit 1
|
[ -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
|
netif=$1
|
||||||
dcb=$2
|
dcb=$2
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,7 @@
|
||||||
#sysloglevel=level What level has to be logged
|
#sysloglevel=level What level has to be logged
|
||||||
#syslogtype=rsyslog|syslog|syslogng
|
#syslogtype=rsyslog|syslog|syslogng
|
||||||
# Don't auto detect syslog but set it
|
# Don't auto detect syslog but set it
|
||||||
if getarg rdnetdebug ; then
|
. /lib/dracut-lib.sh
|
||||||
exec >/tmp/syslog-parse-opts.$1.$$.out
|
|
||||||
exec 2>>/tmp/syslog-parse-opts.$1.$$.out
|
|
||||||
set -x
|
|
||||||
fi
|
|
||||||
|
|
||||||
syslogserver=$(getarg syslog)
|
syslogserver=$(getarg syslog)
|
||||||
syslogfilters=$(getargs filter)
|
syslogfilters=$(getargs filter)
|
||||||
|
|
|
@ -1,12 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Triggered by udev and starts rsyslogd with bootparameters
|
# Triggered by udev and starts rsyslogd with bootparameters
|
||||||
. /lib/dracut-lib.sh
|
|
||||||
|
|
||||||
if getarg rdnetdebug ; then
|
. /lib/dracut-lib.sh
|
||||||
exec >/tmp/rsyslogd-start.$1.$$.out
|
|
||||||
exec 2>>/tmp/rsyslogd-start.$1.$$.out
|
|
||||||
set -x
|
|
||||||
fi
|
|
||||||
|
|
||||||
rsyslog_config() {
|
rsyslog_config() {
|
||||||
local server=$1
|
local server=$1
|
||||||
|
|
|
@ -1,14 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Just cleans up a previously started syslogd
|
# Just cleans up a previously started syslogd
|
||||||
|
|
||||||
. /lib/dracut-lib.sh
|
. /lib/dracut-lib.sh
|
||||||
|
|
||||||
|
|
||||||
if getarg rdnetdebug ; then
|
|
||||||
exec >/tmp/syslog-cleanup.$1.$$.out
|
|
||||||
exec 2>>/tmp/syslog-cleanup.$1.$$.out
|
|
||||||
set -x
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f /tmp/syslog.server ]; then
|
if [ -f /tmp/syslog.server ]; then
|
||||||
read syslogtype < /tmp/syslog.type
|
read syslogtype < /tmp/syslog.type
|
||||||
if [ -e "/sbin/${syslogtype}-stop" ]; then
|
if [ -e "/sbin/${syslogtype}-stop" ]; then
|
||||||
|
|
|
@ -17,12 +17,6 @@ detect_syslog() {
|
||||||
[ -n "$syslogtype" ]
|
[ -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
|
read syslogtype < /tmp/syslog.type
|
||||||
if [ -z "$syslogtype" ]; then
|
if [ -z "$syslogtype" ]; then
|
||||||
syslogtype=$(detect_syslog)
|
syslogtype=$(detect_syslog)
|
||||||
|
|
|
@ -52,7 +52,7 @@ setdebug() {
|
||||||
if [ -z "$RDDEBUG" ]; then
|
if [ -z "$RDDEBUG" ]; then
|
||||||
if [ -e /proc/cmdline ]; then
|
if [ -e /proc/cmdline ]; then
|
||||||
RDDEBUG=no
|
RDDEBUG=no
|
||||||
if getarg rdinitdebug; then
|
if getarg rdinitdebug || getarg rdnetdebug; then
|
||||||
RDDEBUG=yes
|
RDDEBUG=yes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue