Bug#1114953: systemd: fails to upgrade in chroot without /proc

Lorenzo plorenzo at disroot.org
Sun Sep 21 11:08:44 BST 2025


Control: tags -1 confirmed

Hi,

On Fri, 12 Sep 2025 05:11:27 +0200 Christoph Anton Mitterer
<calestyo at scientia.org> wrote:
> Package: systemd
> Version: 258~rc4-1
> Severity: normal
> 
> 
> Hey.
> 
> Not sure if this is simply no longer supported, but upgrading
> systemd now fails in a chroot, when /proc isn't bind mounted
> into that:

I'm hitting this in a sbuild chroot with systemd 258-1

in systemd postinstall script at line 68 there is a call
to systemd-machine-id-setup that is not guarded:

> # Create /etc/machine-id
> systemd-machine-id-setup ${DPKG_ROOT:+--root="$DPKG_ROOT"}

if the problem is that systemd-machine-id-setup does not work
if proc is not mounted (not sure about that) maybe

if mountpoint -q ${DPKG_ROOT:+--root="$DPKG_ROOT"}/proc ; then
	systemd-machine-id-setup ${DPKG_ROOT:+--root="$DPKG_ROOT"}
fi

Cheers,
Lorenzo



More information about the Pkg-systemd-maintainers mailing list