Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

90dmsquash-live: cannot handle overlayfs module built into kernel #1146

Closed
AdrianVovk opened this issue Mar 9, 2021 · 2 comments · Fixed by #1436
Closed

90dmsquash-live: cannot handle overlayfs module built into kernel #1146

AdrianVovk opened this issue Mar 9, 2021 · 2 comments · Fixed by #1436
Labels
bug Our bugs
Milestone

Comments

@AdrianVovk
Copy link

AdrianVovk commented Mar 9, 2021

Describe the bug
As of kmod 28, modprobe fails and spits out an error code if the kernel module you're trying to load is already built into the kernel. I'm not super sure if this is a kmod bug (I cross-opened an issue there too, just in case), but this is currently breaking dracut. Dracut runs modprobe overlay, which fails because this module cannot be found (it's built-in) and then dracut stops and refuses to continue booting.

Distribution used
carbonOS 2021.1 (my own in-development distro)

Dracut version
53

Init system
systemd

To Reproduce
Build Linux with CONFIG_OVERLAY_FS as y instead of m. Ensure running on kmod 28. System will fail to boot into a live OS.

@haraldh
Copy link
Collaborator

haraldh commented May 3, 2021

Hmm, I can't reproduce this with kmod 28.

# modprobe --version
kmod version 28
+ZSTD +XZ +ZLIB +LIBCRYPTO -EXPERIMENTAL

# modinfo sg
name:           sg
filename:       (builtin)
[…]

# modprobe sg; echo $?
0

# lsinitrd /lib/modules/5.11.16-300.fc34.x86_64/initrd -f usr/lib/modules/5.11.16-300.fc34.x86_64/modules.builtin  | grep sg.ko
kernel/block/bsg.ko
kernel/drivers/scsi/sg.ko

@haraldh haraldh modified the milestones: dracut-054, dracut-055 May 3, 2021
haraldh added a commit to haraldh/dracut that referenced this issue May 4, 2021
This solves all issues, where builtin kernel modules are not recognized
as such.

Fixes: dracutdevs#1146
Fixes: dracutdevs#1099
@haraldh
Copy link
Collaborator

haraldh commented May 4, 2021

This is likely the culprit: #1436

haraldh added a commit that referenced this issue May 4, 2021
This solves all issues, where builtin kernel modules are not recognized
as such.

Fixes: #1146
Fixes: #1099
mikhailnov pushed a commit to mikhailnov/dracut that referenced this issue Mar 5, 2024
This solves all issues, where builtin kernel modules are not recognized
as such.

Fixes: dracutdevs#1146
Fixes: dracutdevs#1099
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Our bugs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants