[SOLVED] mkinitrd errors when /boot/initrd-tree is cleared
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After the recent updates to slackware64-current, if the /boot/initrd-tree is cleared or manually deleted get modules not found messages, however the initrd.gz created works as it should
Code:
mkinitrd -c -F
WARNING: Could not find module "/lib/modules/5.17.4/kernel/drivers/usb/host/xhci-hcd.ko"
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/xhci-pci-renesas.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/xhci-pci.ko added.
WARNING: Could not find firmware "/lib/firmware/renesas_usb_fw.mem"
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/ehci-hcd.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/ohci-hcd.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/ohci-pci.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/ehci-hcd.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/ehci-pci.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/xhci-hcd.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/uhci-hcd.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/usb/host/ehci-hcd.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/drivers/hid/hid.ko"
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/drivers/hid/usbhid/usbhid.ko"
WARNING: Could not find module "/lib/modules/5.17.4/kernel/drivers/i2c/i2c-core.ko"
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/drivers/hid/i2c-hid/i2c-hid.ko"
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-generic.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/drivers/acpi/video.ko"
WARNING: Could not find module "/lib/modules/5.17.4/kernel/drivers/platform/x86/wmi.ko"
WARNING: Could not find module "/lib/modules/5.17.4/kernel/net/rfkill/rfkill.ko"
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/drivers/input/sparse-keymap.ko"
OK: /lib/modules/5.17.4/kernel/drivers/acpi/battery.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/acpi/platform_profile.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/platform/x86/asus-wmi.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-asus.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-cherry.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-logitech.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/usbhid/usbhid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-logitech-dj.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-logitech-hidpp.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-lenovo.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-microsoft.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-multitouch.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko"
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/ext4/ext4.ko"
57669 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
Did another check with just the ext4 module and If I
...OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-microsoft.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid.ko added.
OK: /lib/modules/5.17.4/kernel/drivers/hid/hid-multitouch.ko added.
OK: /lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/ext4/ext4.ko"
57669 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
root@slackbox:~# ls /boot/initrd-tree//lib/modules/5.17.4/kernel/fs/ext4/
ext4.ko
As already the stated the /boot/initrd.gz works and able to boot with the generic kernel without any problems.
This slackware64-current is a fresh installation of slackware64-15
Last edited by colorpurple21859; 04-21-2022 at 09:15 PM.
Distribution: Slackware 64 -current multilib from AlienBob's LiveSlak MATE
Posts: 1,081
Rep:
Similar experience here, after installing the latest (5.17.4) kernel (didn't touch the /boot/initrd-tree though):
Code:
bash-5.1# mkinitrd -c -k 5.17.4 -m ext4
WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko"
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/ext4/ext4.ko"
58629 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
But here too the /boot/initrd.gz works and I'm able to boot generic kernel without issues.
If modules are compiled into the kernel (not as loadable modules), then the loadable module files will be missing. If you use -m ext4, then mkinitrd will probably assume that ext4 (and modules it depends on) are loadable module files and looks for them. So, check if ext4 is really a module. Personally, I compile all modules having to do with storage and networking (or, drivers needed to boot) into my kernel and then I do not have to use MODULES_LIST in /etc/mkinitrd.conf or -m on the command line. I still have to use initial root disk (initrd) to setup mdraid6, luks, lvm, and then mount my ext4 "final root disk" before switch_root (on initrd) can boot my final root disk.
If you use the huge kernel, then I think that any modules listed to mkinitrd will be missing. If you use a generic kernel, but change the linux config to compile-in ext4 and other modules, those modules will be missing and do not need to be listed to mkinitrd.
If you already know all this and the problem is something else, then sorry!
I suspected coreutils as well. I normally do my mkinitrd's from /boot
Code:
/boot# mkinitrd -F -k 5.17.3:5.17.4
WARNING: Could not find module "/lib/modules/5.17.3/kernel/fs/jbd2/jbd2.ko"
OK: /lib/modules/5.17.3/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.17.3/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.17.3/kernel/fs/mbcache.ko added.
WARNING: Could not find module "/lib/modules/5.17.3/kernel/fs/ext4/ext4.ko"
WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko"
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
WARNING: Could not find module "/lib/modules/5.17.4/kernel/fs/ext4/ext4.ko"
63101 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
The modules are copied to the tree in the right places so the boot will succeed.
Works fine from "/"
Code:
/# mkinitrd -F -k 5.17.3:5.17.4
OK: /lib/modules/5.17.3/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.17.3/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.17.3/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.17.3/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.17.3/kernel/fs/ext4/ext4.ko added.
OK: /lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.17.4/kernel/fs/jbd2/jbd2.ko added.
OK: /lib/modules/5.17.4/kernel/fs/mbcache.ko added.
OK: /lib/modules/5.17.4/kernel/fs/ext4/ext4.ko added.
63101 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
I can live with that I guess. I will be reminded if I forget to switch to '?'
Last edited by chrisretusn; 04-22-2022 at 08:54 AM.
Interesting - I run my kernel update script from /root... and, of course, had plenty of warnings. Generic kernel 5.17.4 was working fine as of last night.
Interesting - I run my kernel update script from /root... and, of course, had plenty of warnings. Generic kernel 5.17.4 was working fine as of last night.
Generic kernel works here also, just get warning messages that I do not normally get.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.