Hi! On Sun, 30 Oct 2011 22:26:38 +0000, "Samuel Thibault" <[email protected]> wrote: > The following commit has been merged in the master branch: > commit 5d1a088da2fd43742840f220b2a46551d4e54883 > Author: Samuel Thibault <[email protected]> > Date: Sun Oct 30 23:26:12 2011 +0100 > > debian/local/dmesg: Add script which cat /var/log/dmesg. > > diff --git a/debian/local/dmesg b/debian/local/dmesg > new file mode 100755 > index 0000000..0310d0c > --- /dev/null > +++ b/debian/local/dmesg > @@ -0,0 +1,2 @@ > +#!/bin/sh > +exec cat /var/log/dmesg
Neat idea -- but it breaks /etc/init.d/bootlogs:
[...]
# Save kernel messages in /var/log/dmesg
if which dmesg >/dev/null 2>&1
then
[ -f /var/log/dmesg ] && savelog -q -p -c 5 /var/log/dmesg
dmesg -s 524288 > /var/log/dmesg
chgrp adm /var/log/dmesg || :
elif [ -c /dev/klog ]
then
[ -f /var/log/dmesg ] && savelog -q -p -c 5 /var/log/dmesg
dd if=/dev/klog of=/var/log/dmesg &
sleep 1
kill $!
[ -f /var/log/dmesg ] && { chgrp adm /var/log/dmesg || : ; }
fi
[...]
Previously, we'd take the [ -c /dev/klog ] path; now we get a (non-fatal)
error at boot: ``cat: /var/log/dmesg: input file is output file'', and
/var/log/dmesg is then empty.
Grüße,
Thomas
pgpRFfiUrMYlZ.pgp
Description: PGP signature

