Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832307 - sys-apps/systemd-250.3: systemd-binfmt[496]: Failed to flush binfmt_misc rules, ignoring: No such file or directory
Summary: sys-apps/systemd-250.3: systemd-binfmt[496]: Failed to flush binfmt_misc rule...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-01-29 10:28 UTC by Julien Delquié
Modified: 2022-02-03 03:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julien Delquié 2022-01-29 10:28:13 UTC
If I look to journalctl -nall --unit=systemd-binfmt.service, and update dates of sys-apps/systemd, there is an issue about systemd-binfmt since 27 december 2021 and sys-apps/systemd-250-r1 version.

The service systemd-binfmt does not start:

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

Then since 1 january 2022:

janv. 01 11:48:45 pasokon.maison systemd[1]: Starting Set Up Additional Binary Formats...
janv. 01 11:48:45 pasokon.maison systemd-binfmt[496]: Failed to flush binfmt_misc rules, ignoring: No such file or directory
janv. 01 11:48:45 pasokon.maison systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
janv. 01 11:48:45 pasokon.maison systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
janv. 01 11:48:45 pasokon.maison systemd[1]: Failed to start Set Up Additional Binary Formats.

Same again today (sys-apps/systemd-250.3):

janv. 29 08:59:47 pasokon.maison systemd[1]: Starting Set Up Additional Binary Formats...
janv. 29 08:59:47 pasokon.maison systemd-binfmt[529]: Failed to flush binfmt_misc rules, ignoring: No such file or directory
janv. 29 08:59:47 pasokon.maison systemd[1]: systemd-binfmt.service: Main process exited, code=exited, status=1/FAILURE
janv. 29 08:59:47 pasokon.maison systemd[1]: systemd-binfmt.service: Failed with result 'exit-code'.
janv. 29 08:59:47 pasokon.maison systemd[1]: Failed to start Set Up Additional Binary Formats.

Furthermore, there is nothing in /etc/binfmt.d and /usr/lib/binfmt.d. Maybe this leads to the issue?

Reproducible: Always

Steps to Reproduce:
1. Have systemd and no files in /etc/binfmt.d and /usr/lib/binfmt.d
2. Look at journalctl -nall --unit=systemd-binfmt.service
Actual Results:  
systemd-binfmt fails to start.

Expected Results:  
systemd-binfmt start with success.
Comment 1 Julien Delquié 2022-01-29 10:34:02 UTC
Also, I have this in my kernel config:
$ grep -r CONFIG_BINFMT_MISC .config
# CONFIG_BINFMT_MISC is not set

Maybe I should set it?
Comment 2 Julien Delquié 2022-01-29 10:54:53 UTC
Ok, after setting CONFIG_BINFMT_MISC, everything is now ok!

$ grep -r CONFIG_BINFMT_MISC .config
CONFIG_BINFMT_MISC=y

journalctl -e --unit=systemd-binfmt.service
janv. 29 11:50:34 pasokon.maison systemd[1]: Starting Set Up Additional Binary Formats...
janv. 29 11:50:34 pasokon.maison systemd[1]: Finished Set Up Additional Binary Formats.

Sorry for the useless bugreport!
Comment 3 Larry the Git Cow gentoo-dev 2022-02-03 02:21:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=909ff1217e19ce803fefbd16a67869426232f432

commit 909ff1217e19ce803fefbd16a67869426232f432
Author:     Matthew Smith <matt@offtopica.uk>
AuthorDate: 2022-01-30 15:41:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-03 02:21:28 +0000

    sys-apps/systemd: Add BINFMT_MISC to CONFIG_CHECK
    
    Required by systemd-binfmt.service.
    
    Closes: https://bugs.gentoo.org/832307
    Signed-off-by: Matthew Smith <matt@offtopica.uk>
    Closes: https://github.com/gentoo/gentoo/pull/24023
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/systemd/systemd-249.9.ebuild | 2 +-
 sys-apps/systemd/systemd-250.2.ebuild | 2 +-
 sys-apps/systemd/systemd-250.3.ebuild | 2 +-
 sys-apps/systemd/systemd-9999.ebuild  | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)