Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVME module error #217

Open
ghost opened this issue Dec 10, 2022 · 3 comments
Open

NVME module error #217

ghost opened this issue Dec 10, 2022 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 10, 2022

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
Copy link
Owner

MatMoul commented Jan 15, 2023

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
Copy link

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
Copy link

ghost commented Nov 17, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants