Bug#973737: systemd: wtmp not updated after unexpected reboot

2020-11-04 Thread Michael Biebl

Control: tags -1 + moreinfo

Hello

Am 04.11.20 um 08:42 schrieb Guy Geens:

Package: systemd
Version: 241-7~deb10u4
Severity: normal

Dear Maintainer,

Recently, I had a power loss on one of my machines.

After the reboot, wtmp contained the following entries:

$ last reboot
reboot   system boot  4.19.0-12-amd64  Tue Nov  3 09:09   still running
reboot   system boot  4.19.0-12-amd64  Mon Oct 19 14:54   still running
reboot   system boot  4.19.0-11-amd64  Sat Sep 26 12:27 - 14:54 (23+02:26)

The previous reboot is still listed as "running", while it should have
been updated.


wtmp is a SysV compat interface and systemd simply tries to emulate the 
old SysV behavior here. It is my understanding that under sysvinit, if 
you had a forced power off/reboot, /var/log/wtmp wasn't updated as well.
I don't think it makes sense to change this old SysV init behavior and 
diverge in systemd.


Regards,
Michael



Bug#973737: systemd: wtmp not updated after unexpected reboot

2020-11-04 Thread Guy Geens
Package: systemd
Version: 241-7~deb10u4
Severity: normal

Dear Maintainer,

Recently, I had a power loss on one of my machines.

After the reboot, wtmp contained the following entries:

$ last reboot
reboot   system boot  4.19.0-12-amd64  Tue Nov  3 09:09   still running
reboot   system boot  4.19.0-12-amd64  Mon Oct 19 14:54   still running
reboot   system boot  4.19.0-11-amd64  Sat Sep 26 12:27 - 14:54 (23+02:26)

The previous reboot is still listed as "running", while it should have
been updated.

-- Package-specific info:

-- System Information:
Debian Release: 10.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-12-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8), 
LANGUAGE=nl_BE:nl (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd depends on:
ii  adduser  3.118
ii  libacl1  2.2.53-4
ii  libapparmor1 2.13.2-10
ii  libaudit11:2.8.4-3
ii  libblkid12.33.1-0.1
ii  libc62.28-10
ii  libcap2  1:2.25-2
ii  libcryptsetup12  2:2.1.0-5+deb10u2
ii  libgcrypt20  1.8.4-5
ii  libgnutls30  3.6.7-4+deb10u5
ii  libgpg-error01.35-1
ii  libidn11 1.33-2.2
ii  libip4tc01.8.2-4
ii  libkmod2 26-1
ii  liblz4-1 1.8.3-1
ii  liblzma5 5.2.4-1
ii  libmount12.33.1-0.1
ii  libpam0g 1.3.1-5
ii  libseccomp2  2.3.3-4
ii  libselinux1  2.8-1+b1
ii  libsystemd0  241-7~deb10u4
ii  mount2.33.1-0.1
ii  util-linux   2.33.1-0.1

Versions of packages systemd recommends:
ii  dbus1.12.20-0+deb10u1
ii  libpam-systemd  241-7~deb10u4

Versions of packages systemd suggests:
ii  policykit-10.105-25
pn  systemd-container  

Versions of packages systemd is related to:
pn  dracut   
ii  initramfs-tools  0.133+deb10u1
ii  udev 241-7~deb10u4

-- no debconf information