You are not logged in.

#1 2024-05-21 01:53:45

ltsdw
Member
Registered: 2020-04-20
Posts: 76

[Solved] The absence of raid modules should be treated as warnings

If a kernel is compiled without the raid modules, pacman will complain a bit:

==> WARNING: Possibly missing firmware for module: 'xhci_pci'
==> ERROR: module not found: 'dm_raid'
==> ERROR: module not found: 'raid0'
==> ERROR: module not found: 'raid1'
==> ERROR: module not found: 'raid10'
==> ERROR: module not found: 'raid456'
error: command failed to execute correctly

The kernel will be installed normally, so it isn't a big deal, but why these are treated as errors and not warnings?

This are the modules I have in mkinitcpio.conf, nothing raid related:

HOOKS=(base systemd autodetect keyboard sd-vconsole modconf block sd-encrypt lvm2 filesystems fsck)

Last edited by ltsdw (2024-05-23 14:43:31)

Offline

#2 2024-05-21 10:09:40

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,146

Re: [Solved] The absence of raid modules should be treated as warnings

While booted with that kernel run mkinitcpio -M .

All modules it lists are required by autodetectiion / your chosen hooks .
Try removing lvm2 and/or filesystems for testing purpose, then rerun the command.

If without those 2 hooks they still show, you'll have to dig deeper.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-05-21 10:44:10

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 663

Re: [Solved] The absence of raid modules should be treated as warnings

It's the lvm2 hook that tries to pull in those modules. See https://gitlab.archlinux.org/archlinux/ … 186f34ddca for the reasoning. If your kernel is built without them, then lvmraid will not work, so I guess it should be fine to make the hook not issue these errors if the modules are not found.

Feel free to create a merge request that appends "?" to all (most?) of the module names in install/lvm2.

Last edited by nl6720 (2024-05-21 16:26:48)

Offline

#4 2024-05-21 16:25:50

ltsdw
Member
Registered: 2020-04-20
Posts: 76

Re: [Solved] The absence of raid modules should be treated as warnings

Sure, lemme ask for an account username, right now account registration is disabled.

Offline

#5 2024-05-23 14:43:10

ltsdw
Member
Registered: 2020-04-20
Posts: 76

Re: [Solved] The absence of raid modules should be treated as warnings

Thanks.
Solved by #399.

Offline

Board footer

Powered by FluxBB