You are not logged in.
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
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
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'
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
That's almost too obvious ![]()
@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
That's almost too obvious
@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
In the build() function instead of set-/+x add "pwd", that'll print the PWD at this point - likely your $HOME ?
Offline
This would have caught it too:
try logging in as root instead of using sudo
Offline
I guess its solved? I've since changed hardware so I can't test this solution.
Offline