Bjarni,

Thanks for this

On Fri, Apr 07, 2023 at 09:52:17PM +0000, Bjarni Ingi Gislason wrote:
> Package: bootlogd
> Version: 3.06-2
> Severity: important
> 
> Dear Maintainer,
> 
>    * What led up to the situation?
> 
> /var/log/boot*  was not updated after 28th September 2021.
> 
>   File is used in /etc/init.d/bootlogd.
> 
>   The conditional code
> 
>       if [ -f /var/log/boot ] && [ -f /var/log/boot~ ]
>       then
>               [ "$VERBOSE" = no ] || log_action_begin_msg "Moving boot log 
> file"
>               # bootlogd writes to boot, making backup at boot~
>               cd /var/log && {
>                       chgrp adm boot || :
>                       savelog -q -p -c 5 boot &&
>                           mv boot.0 boot      &&
>                           mv boot~ boot.0
>               }
>               ES=$?
>               [ "$VERBOSE" = no ] || log_action_end_msg $ES
>       fi
> 
> is therefore never used.

Yes, I think this code might be cruft from before the change to bootlog using
/run/bootlog.

We may still need to implement savelog rotation for /run/bootlog ->
/var/log/boot though. I will test that.

> -- System Information:
> Debian Release: 12.0
>   APT prefers testing-security
>   APT policy: (500, 'testing-security'), (500, 'testing')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 6.1.20-1 (SMP w/2 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_WARN
> Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
> LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: sysvinit (via /sbin/init)
> 
> Versions of packages bootlogd depends on:
> ii  libc6           2.36-8
> ii  sysvinit-utils  3.06-2
> 
> bootlogd recommends no packages.
> 
> bootlogd suggests no packages.
> 
> -- Configuration Files:
> /etc/init.d/bootlogd changed [not included]
> /etc/init.d/stop-bootlogd [Errno 2] No such file or directory: 
> '/etc/init.d/stop-bootlogd'
> /etc/init.d/stop-bootlogd-single [Errno 2] No such file or directory: 
> '/etc/init.d/stop-bootlogd-single'

However, AFAICS these scripts are still required. Can you reinstate them and you
should have boot logging to /var/log/boot at least.

Mark

Reply via email to