Source: glibc Version: 2.33-7 Severity: normal Tags: patch User: debian-d...@lists.debian.org Usertags: dpkg-root-support X-Debbugs-Cc: jo...@debian.org
Hi, when glibc is installed with $DPKG_ROOT set to a non-empty string, then "systemctl daemon-reexec" or "telinit" should not be executed, similarly to when the postinst is run inside a chroot. I filed a MR [1] and put the patch at the end of this mail. Thanks! cheers, josch [1] https://salsa.debian.org/glibc-team/glibc/-/merge_requests/5 --- a/debian/debhelper.in/libc.postinst +++ b/debian/debhelper.in/libc.postinst @@ -157,6 +157,9 @@ then if ischroot 2>/dev/null; then # Don't bother trying to re-exec init from a chroot: TELINIT=no + elif [ -n "${DPKG_ROOT:-}" ]; then + # Do not re-exec init if we are operating on a chroot from outside: + TELINIT=no elif [ -d /run/systemd/system ]; then # Restart systemd on upgrade, but carefully. # The restart is wanted because of LP: #1942276 and Bug: #993821