Re: No modules were added to the image after running mkinitcpio
Reply #2 –
This one at the end of all the "Running build hook: ..." lines:
WARNING: No modules were added to the image. This is probably not what you want
The image generation is successful after that but i can't boot from that.
I ran it again just now and got this:
[htw@artixhtw linux-5.14.4]$ sudo make modules_install
INSTALL /lib/modules/5.14.4/kernel/drivers/thermal/intel/x86_pkg_temp_thermal.ko
INSTALL /lib/modules/5.14.4/kernel/fs/efivarfs/efivarfs.ko
INSTALL /lib/modules/5.14.4/kernel/fs/reiserfs/reiserfs.ko
INSTALL /lib/modules/5.14.4/kernel/net/ipv4/netfilter/iptable_nat.ko
INSTALL /lib/modules/5.14.4/kernel/net/netfilter/nf_log_syslog.ko
INSTALL /lib/modules/5.14.4/kernel/net/netfilter/xt_LOG.ko
INSTALL /lib/modules/5.14.4/kernel/net/netfilter/xt_MASQUERADE.ko
INSTALL /lib/modules/5.14.4/kernel/net/netfilter/xt_addrtype.ko
INSTALL /lib/modules/5.14.4/kernel/net/netfilter/xt_mark.ko
INSTALL /lib/modules/5.14.4/kernel/net/netfilter/xt_nat.ko
DEPMOD /lib/modules/5.14.4
[htw@artixhtw linux-5.14.4]$ sudo depmod -a
[htw@artixhtw linux-5.14.4]$ sudo cp arch/x86_64/boot/bzImage /boot/vmlinuz-linux-5.14.4
[htw@artixhtw linux-5.14.4]$ sudo cp System.map System.map-5.14.4
[htw@artixhtw linux-5.14.4]$ sudo mkinitcpio -k 5.14.4 -g /boot/initramfs-linux-5.14.4.img
==> Starting build: 5.14.4
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
==> ERROR: module not found: `usbhid'
-> Running build hook: [fsck]
==> WARNING: No modules were added to the image. This is probably not what you want.
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-5.14.4.img
==> WARNING: errors were encountered during the build. The image may not be complete.
[htw@artixhtw linux-5.14.4]$