[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [SCM] Debian GNU Hurd packaging branch, master, updated. upstream/20111030-506-g5d1a088



Hi!

On Sun, 30 Oct 2011 22:26:38 +0000, "Samuel Thibault" <samuel.thibault@ens-lyon.org> wrote:
> The following commit has been merged in the master branch:
> commit 5d1a088da2fd43742840f220b2a46551d4e54883
> Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
> 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

Attachment: pgpXlv7r5QHxc.pgp
Description: PGP signature


Reply to: