Bug#916588: libc6: uses non-essential runlevel in preinst and postinst
Package: libc6
Version: 2.28-2
Severity: minor
While upgrading libc6 from 2.27-8 to 2.28-2, I saw this:
| Checking for services that may need to be restarted...
| Checking init scripts...
| /var/lib/dpkg/tmp.ci/preinst: 320: /var/lib/dpkg/tmp.ci/preinst: runlevel: not found
That's libc6's preinst using runlevel.
I also saw this:
| Checking for services that may need to be restarted...
| Checking init scripts...
| /var/lib/dpkg/info/libc6:amd64.postinst: 81: /var/lib/dpkg/info/libc6:amd64.postinst: runlevel: not found
| Nothing to restart.
That's the same thing for postinst.
The message is completely harmless. It's from
debian/script.in/nsscheck.sh and tells. When runlevel is not available,
we're not running any of sysvinit, systemd or runit and very likely no
services are running. In that case, the result is irrelevant and the
only negative effect is the message. The upgrade proceeds successfully.
Helmut
Reply to: