View previous topic :: View next topic |
Author |
Message |
FatFourtyTwo n00b
Joined: 10 Jul 2022 Posts: 21
|
Posted: Thu Aug 18, 2022 1:11 pm Post subject: First boot: OpenRC hangs at 'mounting binary filesystem' |
|
|
After following the installation steps in the AMD64 handbook (along with adding some packages I expected to need, mostly DE-related) I rebooted, got to grub, and saw OpenRC start up. But it started hanging at "Mounting misc binary format filesystem." After letting it sit there for 10-15 minutes and rebooting a few times, I can confirm that this is a consistent behavior.
I'm assuming that the message immediately before it has something to do with it: a yellow asterisk followed by "The binfmt-misc module needs to be loaded by the module service or built in,"
I'm using the Gentoo distribution kernel, specifically 5.15.59-gentoo-dist. I tried mounting everything, chrooting in, and "modprobe binfmt-misc" but for reasons I don't understand, despite following all handbook instructions for mounting filesystems and typing 'chroot /mnt/gentoo /bin/bash', it still tries to load the module from my host kernel rather than the Gentoo kernel.
Is there some way to either build the module if I don't have it for some reason, or get OpenRC to load it? |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 3996 Location: Bavaria
|
Posted: Thu Aug 18, 2022 4:55 pm Post subject: |
|
|
You will find this module here:
Code: | Executable file formats --->
[ ] Kernel support for MISC binaries |
If you select <Help> you will find also:
Quote: | To use binfmt_misc, you will need to mount it:
mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc |
... BUT ... why do you need it ? It is not recommended by security:
Quote: | # Easily confused by misconfigured userspace, keep off.
# CONFIG_BINFMT_MISC is not set |
=> https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project/Recommended_Settings
P.S.: If you dont know which runscript try this, please edit /etc/rc.conf and activate: "rc_interactive="YES" |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|