You are not logged in.

#26 2023-12-06 07:14:18

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,006

Re: [SOLVED] Kernel install missing module error

0x0.st

+ map add_module 'ahci?' 'sd_mod?' 'usb_storage?' 'uas?' 'mmc_block?' nvme2 'virtio_scsi?' 'virtio_blk?'

The problems start right at the beginning, the "?" gets substituted for whatever reason.

Edit /usr/lib/initcpio/install/block and put every element in that line (everything that trails w/ a "?") in single quotes.

/bin/zsh

pleaseodeagodpleaseitschristmas
Do you use OMZ?

Offline

#27 2023-12-06 09:17:56

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

Re: [SOLVED] Kernel install missing module error

Perhaps it's a file glob.
Add the following line to install/block just above the one with map add_module ahci? ...

realpath -- nvme?

Edit:
Yeah, it's a file glob.

$ touch nvme2
$ sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -U /efi/EFI/Linux/arch-linux.efi --no-cmdline --microcode /boot/amd-ucode.img
==> Starting build: '6.6.4-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [block]
==> ERROR: module not found: 'nvme2'

MR: https://gitlab.archlinux.org/archlinux/ … quests/284

Last edited by nl6720 (2023-12-06 09:36:31)

Offline

#28 2023-12-06 10:08:19

gardotd426
Member
Registered: 2019-10-19
Posts: 48

Re: [SOLVED] Kernel install missing module error

nl6720 wrote:

Perhaps it's a file glob.
Add the following line to install/block just above the one with map add_module ahci? ...

realpath -- nvme?

Edit:
Yeah, it's a file glob.

$ touch nvme2
$ sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -U /efi/EFI/Linux/arch-linux.efi --no-cmdline --microcode /boot/amd-ucode.img
==> Starting build: '6.6.4-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [kms]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [block]
==> ERROR: module not found: 'nvme2'

MR: https://gitlab.archlinux.org/archlinux/ … quests/284

Yep that makes perfect sense. I have two directories in my $HOME, one called nvme and one called nvme2 (its where I mount my 2nd and 3rd nvme drives).

Offline

#29 2023-12-06 12:27:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,006

Re: [SOLVED] Kernel install missing module error

That's almost too obvious roll

@nl6720, "+1" for the MR
(It's the correct thing to do anyway - the "?" was always gonna be prone to glob something™ - I file in $PWD being rather a surprising obstacle, I had bet on some variable bleeding in)

Offline

#30 2023-12-06 12:48:10

gardotd426
Member
Registered: 2019-10-19
Posts: 48

Re: [SOLVED] Kernel install missing module error

seth wrote:

That's almost too obvious roll

@nl6720, "+1" for the MR
(It's the correct thing to do anyway - the "?" was always gonna be prone to glob something™ - I file in $PWD being rather a surprising obstacle, I had bet on some variable bleeding in)

Well what's weird is its not a matter of running it from $HOME. I changed to other directories to test that theory and got the exact same error.

I didn't have time to go through every involved script and config file but it must check $HOME at some point.

Offline

#31 2023-12-06 12:56:34

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,006

Re: [SOLVED] Kernel install missing module error

In the build() function instead of set-/+x add "pwd", that'll print the PWD at this point - likely your $HOME ?

Offline

#32 2023-12-06 13:02:39

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

Re: [SOLVED] Kernel install missing module error

This would have caught it too:

Scimmia wrote:

try logging in as root instead of using sudo

Offline

#33 2024-04-17 02:04:51

linuxsimpleton43
Member
Registered: 2022-03-24
Posts: 33

Re: [SOLVED] Kernel install missing module error

I guess its solved? I've since changed hardware so I can't test this solution.

Offline

Board footer

Powered by FluxBB