Bug#1012154: binfmt-support.service errors with "unable to close /proc/sys/fs/binfmt_misc/register: File exists"
Michael Biebl
biebl at debian.org
Thu Jun 2 10:16:44 BST 2022
Am 01.06.22 um 13:18 schrieb Colin Watson:
> 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.
Thinking more about it, it might actually be preferrable, if this
condition is shipped by binfmt-support via a drop-in config for
systemd-binfmt.service.
This way, the condition is only evaluated when binfmt-support is
actually installed.
I've attached a possible patch for that.
Colin, could you please review and if you agree, I'd re-assign this bug
report back to binfmt-support.
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binfmt-support.patch
Type: text/x-patch
Size: 613 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220602/ab4ecdeb/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20220602/ab4ecdeb/attachment-0001.sig>
More information about the Pkg-systemd-maintainers
mailing list