Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1058880: systemd-binfmt.service: unit fails to start when /proc/sys/fs/binfmt_misc is not mounted

106 views
Skip to first unread message

Aurelien Jarno

unread,
Dec 17, 2023, 7:50:04 AM12/17/23
to
Package: systemd
Version: 252.19-1~deb12u1
Severity: normal
Tags: upstream patch fixed-upstream
X-Debbugs-Cc: d...@debian.org

Dear maintainers,

When /proc/sys/fs/binfmt_misc is not mounted (on purpose),
systemd-binfmt.service fails to start:

× systemd-binfmt.service - Set Up Additional Binary Formats
Loaded: loaded (/lib/systemd/system/systemd-binfmt.service; static)
Active: failed (Result: exit-code) since Sat 2023-12-16 14:27:55 UTC; 22h ago
Docs: man:systemd-binfmt.service(8)
man:binfmt.d(5)
https://docs.kernel.org/admin-guide/binfmt-misc.html
https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
Main PID: 1408 (code=exited, status=1/FAILURE)
CPU: 5ms

déc. 16 14:27:54 prokofiev systemd[1]: Starting systemd-binfmt.service - Set Up Additional Binary Formats...
déc. 16 14:27:54 prokofiev systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
déc. 16 14:27:54 prokofiev systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
déc. 16 14:27:54 prokofiev systemd[1]: Failed to start systemd-binfmt.service - Set Up Additional Binary Formats.
déc. 16 14:27:55 prokofiev systemd[1]: Starting systemd-binfmt.service - Set Up Additional Binary Formats...
déc. 16 14:27:55 prokofiev systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
déc. 16 14:27:55 prokofiev systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
déc. 16 14:27:55 prokofiev systemd[1]: Failed to start systemd-binfmt.service - Set Up Additional Binary Formats.

This has already been fixed upstream by the following commit, which is
in trixie/sid, but not in bookworm:

commit f74a7cb45c2458f90de6d37c70fa3afc1a3be279
Author: Yu Watanabe <watanabe....@gmail.com>
Date: Sat Dec 10 11:46:45 2022 +0900

unit: check more specific path to be written by systemd-binfmt

Follow-up for 41807efb1594ae8e71e0255e154ea7d17be2251a.
Replaces #25690.

Would it be possible to backport this commit to bookworm?

Thanks,
Aurelien

Aurelien Jarno

unread,
Dec 31, 2023, 11:50:04 AM12/31/23
to
On 2023-12-31 17:43, Michael Biebl wrote:
> On Mon, 18 Dec 2023 01:47:51 +0100 Michael Biebl <bi...@debian.org> wrote:
> > Am 17.12.23 um 13:44 schrieb Aurelien Jarno:
> > > commit f74a7cb45c2458f90de6d37c70fa3afc1a3be279
> > > Author: Yu Watanabe <watanabe....@gmail.com>
> > > Date: Sat Dec 10 11:46:45 2022 +0900
> > > > unit: check more specific path to be written by systemd-binfmt
> > > > Follow-up for 41807efb1594ae8e71e0255e154ea7d17be2251a.
> > > Replaces #25690.
> > > > Would it be possible to backport this commit to bookworm?
> >
> > Seems reasonable.
> > @Luca: can you include that in your next 252-stable batch? Should we
> > file this as an issue in systemd/systemd-stable as a reminder?
>
> This was cherry-picked into v252-stable and is part of v252.21 which is very
> likely to be uploaded for the next Debian stable release.

Great, thanks!

--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aure...@aurel32.net http://aurel32.net
signature.asc
0 new messages