dracut/modules.d/98syslog
Peter Jones 9346982f22 Be sure and get the right architecture for rsylogd modules.
I've tested this locally on 64-bit with:

dracut -a syslog -f -v foo.img `uname -r`

And I see this in the output:

I: *** Sourcing module syslog
I: Installing /sbin/rsyslogd
I: Installing /lib64/rsyslog/lmnet.so
I: Installing /lib64/rsyslog/imklog.so
I: Installing /lib64/rsyslog/imuxsock.so
I: Installing /usr/share/dracut/modules.d/98syslog/parse-syslog-opts.sh
I: Installing /usr/share/dracut/modules.d/98syslog/syslog-genrules.sh
I: Installing /usr/share/dracut/modules.d/98syslog/syslog-cleanup.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslogd-start.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslogd-stop.sh
I: Installing /usr/share/dracut/modules.d/98syslog/rsyslog.conf
2010-09-10 12:32:31 -04:00
..
README Syslog support for dracut 2009-08-19 10:40:02 +02:00
check reformat source code 2010-09-10 15:34:36 +02:00
install Be sure and get the right architecture for rsylogd modules. 2010-09-10 12:32:31 -04:00
parse-syslog-opts.sh reformat source code 2010-09-10 15:34:36 +02:00
rsyslog.conf Syslog support for dracut 2009-08-19 10:40:02 +02:00
rsyslogd-start.sh reformat source code 2010-09-10 15:34:36 +02:00
rsyslogd-stop.sh reformat source code 2010-09-10 15:34:36 +02:00
syslog-cleanup.sh reformat source code 2010-09-10 15:34:36 +02:00
syslog-genrules.sh reformat source code 2010-09-10 15:34:36 +02:00

README

Syslog support for dracut

This module provides syslog functionality in the initrd.
This is especially interesting when complex configuration being 
used to provide access to the device the rootfs resides on.

When this module is installed into the ramfs it is triggered by 
the udev event from the nic being setup (online).

Then if syslog is configured it is started and will forward all
kernel messages to the given syslog server.

The syslog implementation is detected automatically by finding the 
apropriate binary with the following order:
rsyslogd
syslogd
syslog-ng
Then if detected the syslog.conf is generated and syslog is started.

Bootparameters:
syslogserver=ip    Where to syslog to
sysloglevel=level  What level has to be logged
syslogtype=rsyslog|syslog|syslogng  
                   Don't auto detect syslog but set it