Package: base-files Version: 11.1 Tags: patch The Debian policy declares /var/run (via symlink) as ephemeral. As such packages must not create files in there. While it does not explicitly cover maintainer scripts, that does follow common sense. Any file created in /var/run by a maintainer script is gone after a reboot.
base-files.postinst creates /var/run/utmp if missing. It should not do that. Please consider applying the attached patch. Helmut
diff --minimal -Nru base-files-11.1/debian/changelog base-files-11.1+nmu1/debian/changelog --- base-files-11.1/debian/changelog 2021-04-10 22:15:00.000000000 +0200 +++ base-files-11.1+nmu1/debian/changelog 2021-06-11 12:53:24.000000000 +0200 @@ -1,3 +1,10 @@ +base-files (11.1+nmu1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Don't mess with paths inside /var/run. Closes: #-1. + + -- Helmut Grohne <hel...@subdivi.de> Fri, 11 Jun 2021 12:53:24 +0200 + base-files (11.1) unstable; urgency=medium * Use https where appropriate, namely, origins/debian (currently used) diff --minimal -Nru base-files-11.1/debian/postinst.in base-files-11.1+nmu1/debian/postinst.in --- base-files-11.1/debian/postinst.in 2021-04-10 22:15:00.000000000 +0200 +++ base-files-11.1+nmu1/debian/postinst.in 2021-06-11 12:53:21.000000000 +0200 @@ -93,11 +93,6 @@ chown root:utmp /var/log/wtmp /var/log/btmp /var/log/lastlog chmod 664 /var/log/wtmp /var/log/lastlog chmod 660 /var/log/btmp - if [ ! -f /var/run/utmp ]; then - echo -n>/var/run/utmp - fi - chown root:utmp /var/run/utmp - chmod 664 /var/run/utmp fi if [ ! -d /var/lib/dpkg ]; then