MatMoul / archfi

Arch Linux Fast Installer : tutorial installer
GNU General Public License v3.0
2.53k stars 323 forks source link

NVME module error #217

Open ghost opened 1 year ago

ghost commented 1 year ago

During install, archfi/archdi prompted me to add an NVME module to my mkinitcpio. What is the intended function of this, is it necessary? When I try add it, it gives me this: Photo on 12-10-22 at 11 24 AM If I proceed, the system still installs and runs successfully. But what did this error mean during installation, and should I be worried?

MatMoul commented 1 year ago

I suspect that you have installed another kernel than linux, perhaps an issue. As the initramfs is rebuilt later in the install, you don't run into a problem.

DreitTheDragon commented 10 months ago

I got same error today, yay!

1) choose linux-zen kernel 2) get to mkinitcpio step, it mentions addition of NVME module in dialog 3) mkinitcpio fails to find /etc/mkinitcpio.d/linux.preset because correct path is /etc/mkinitcpio.d/linux-zen.preset

My solution which worked: 1) ctrl + alt + F2, log in as root 2) cp /mnt/etc/mkinitcpio.d/linux-zen.preset /mnt/etc/mkinitcpio.d/linux.preset 3) ctrl + alt + F1, try running mkinitcpio step again

Also it calls mkinitcpio -p linux in archgenmkinitcpiochroot(), not sure if it shouldn't be linux-zen in my case?

Quick and dirty fix might be to mv linux*.preset linux.preset before running mkinitcpio if there is only one file in folder, but I guess that's quite wild compared to having extra variable with kernel name and passing it to command in archgenmkinitcpiochroot().

I actually think I have seen same error about year ago, at that time without NVME drive but again with linux-zen, which makes perfect sense.

ghost commented 7 months ago

I got same error today, yay!

  1. choose linux-zen kernel
  2. get to mkinitcpio step, it mentions addition of NVME module in dialog
  3. mkinitcpio fails to find /etc/mkinitcpio.d/linux.preset because correct path is /etc/mkinitcpio.d/linux-zen.preset

My solution which worked:

  1. ctrl + alt + F2, log in as root
  2. cp /mnt/etc/mkinitcpio.d/linux-zen.preset /mnt/etc/mkinitcpio.d/linux.preset
  3. ctrl + alt + F1, try running mkinitcpio step again

Also it calls mkinitcpio -p linux in archgenmkinitcpiochroot(), not sure if it shouldn't be linux-zen in my case?

Quick and dirty fix might be to mv linux*.preset linux.preset before running mkinitcpio if there is only one file in folder, but I guess that's quite wild compared to having extra variable with kernel name and passing it to command in archgenmkinitcpiochroot().

I actually think I have seen same error about year ago, at that time without NVME drive but again with linux-zen, which makes perfect sense.

This comment was my holy grail. Nothing else work. This enabled me to install Arch on my old desktop after trying for like 5 years. Thank you so much.

If I proceed, the system still installs and runs successfully.

This is strange because this wasn't the case for me, the system would not boot, however when tried on my slightly newer desktop, it worked fine despite the error.