Bug#1012154: binfmt-support.service errors with "unable to close /proc/sys/fs/binfmt_misc/register: File exists"
Colin Watson
cjwatson at debian.org
Wed Jun 1 12:18:03 BST 2022
On Wed, Jun 01, 2022 at 11:25:21AM +0200, Michael Biebl wrote:
> what you see here is a race condition between binfmt-support.service and
> systemd-binfmt.service.
> E.g. qemu installs binfmt config files for both binfmt-support and
> systemd-binfmt leading to the issue you see.
>
> I plan to add a
> ConditionFileIsExecutable=!/usr/sbin/update-binfmts
> to systemd-binfmt.service. This will disable systemd-binfmt.service when
> binfmt-support is installed and should mitigate this issue.
> (thus reassigning to systemd)
Thanks for investigating that.
> Afaics binfmt-support has remained a Debian-only solution, so long-term I'd
> think it would be beneficial if we'd consider systemd-binfmt as a
> cross-distro solution.
>
> There aren't that many packages installing config snippets in
> /usr/share/binfmts, so a transition seems reasonably doable.
I am not interested in this.
--
Colin Watson (he/him) [cjwatson at debian.org]
More information about the Pkg-systemd-maintainers
mailing list