-
Notifications
You must be signed in to change notification settings - Fork 402
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
Dracut complains that --kmoddir /lib/modules/...
doesn't have "/lib/modules" as a parent directory.
#1608
Comments
This bug is primarily an issue with the error message. It should say that dracut is explicitly looking for a 5.13 module directory because the active kernel is 5.13, despite being told explicit --kernel-image and --kmoddir flags. It would be more useful to say:
Or something. This kind of advise could cause other confusion, so I'll defer to those who are more familiar with the nuances of mixing kernel/module versions |
dracut only recognizes the path to the /lib/modules directory that matches the active kernel version, otherwise it will regard the kmoddir as a subdirectory under /lib/modules/$(uname) and try to find it. The warning message seems confusing and is expected to be improved. |
The directory where to look for kernel modules can be set via the -k/--kmoddir command line option or the drivers_dir configuration option. Its current check should be split into two different ones to avoid misleading error messages (see referenced issue): - First check that its basename matches the kernel version set for the initramfs (via --kver or automatically set by "uname -r"). - Second check that the parent directory of the last provided directory contains "/lib/modules/". This check was also fixed to avoid accepting other directories like "xxxlib/modules" or "lib/modulesxxx". Fixes issue dracutdevs#1608
The directory where to look for kernel modules can be set via the -k/--kmoddir command line option or the drivers_dir configuration option. Its current check should be split into two different ones to avoid misleading error messages (see referenced issue): - First check that its basename matches the kernel version set for the initramfs (via --kver or automatically set by "uname -r"). - Second check that the parent directory of the last provided directory contains "/lib/modules/". This check was also fixed to avoid accepting other directories like "xxxlib/modules" or "lib/modulesxxx". Fixes issue dracutdevs#1608
The directory where to look for kernel modules can be set via the -k/--kmoddir command line option or the drivers_dir configuration option. Its current check should be split into two different ones to avoid misleading error messages (see referenced issue): - First check that its basename matches the kernel version set for the initramfs (via --kver or automatically set by "uname -r"). - Second check that the parent directory of the last provided directory contains "/lib/modules/". This check was also fixed to avoid accepting other directories like "xxxlib/modules" or "lib/modulesxxx". Fixes issue dracutdevs#1608
The directory where to look for kernel modules can be set via the -k/--kmoddir command line option or the drivers_dir configuration option. Its current check should be split into two different ones to avoid misleading error messages (see referenced issue): - First check that its basename matches the kernel version set for the initramfs (via --kver or automatically set by "uname -r"). - Second check that the parent directory of the last provided directory contains "/lib/modules/". This check was also fixed to avoid accepting other directories like "xxxlib/modules". Fixes issue dracutdevs#1608
The directory where to look for kernel modules can be set via the -k/--kmoddir command line option or the drivers_dir configuration option. Its current check should be split into two different ones to avoid misleading error messages (see referenced issue): - First check that its basename matches the kernel version set for the initramfs (via --kver or automatically set by "uname -r"). - Second check that the parent directory of the last provided directory contains "/lib/modules/". This check was also fixed to avoid accepting other directories like "xxxlib/modules". Fixes issue #1608
The directory where to look for kernel modules can be set via the -k/--kmoddir command line option or the drivers_dir configuration option. Its current check should be split into two different ones to avoid misleading error messages (see referenced issue): - First check that its basename matches the kernel version set for the initramfs (via --kver or automatically set by "uname -r"). - Second check that the parent directory of the last provided directory contains "/lib/modules/". This check was also fixed to avoid accepting other directories like "xxxlib/modules". Fixes issue dracutdevs#1608
Describe the bug
Dracut doesn't see
/lib/modules/
in the kmoddir and complains, but it is infact there in the path.Distribution used
Arch (updated today)
Dracut version
055
Init system
systemd 249 (249.4-1-arch)
To Reproduce
Expected behavior
Typing a kmoddir that includes "lib/modules" should be accepted and not duplicate into "lib/modules/lib/modules"
Additional context
I upgraded to the latest kernel and have not yet rebooted the system. I'd like to gen an initramfs before rebooting. I wonder if dracut is confused because I'm telling it to build an image for 5.14 but am running 5.13...
The text was updated successfully, but these errors were encountered: