tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issues during install on mounting /dev/root

k4rm4c0m4 opened this issue · comments

This issue is occuring on my M2 MacBook Air 2023.

I followed all instructions to a tea until the point where it comes to installing NixOS. The image boots fine off the USB drive and I am promoted with a GRUB-like interface all as expected. When going on with the installation process, NixOS enters a shell and attempts to mount /dev/root, as is mentioned in the manual, errors can occur here.

I tried multiple times, first blaming the race condition.

Then I followed the instructions in case of hard drive quirks. No success. A different thumb drive has been tried and no success. The specific error messages I am getting are as follows:

[0.931538] pcie-apple 690000000.pcie: invalid resource (null)
This error occurs right when NixOS is waiting for the root device to appear.

Then, after timing out I receive the following error 3 times
[21.933389] /dev/root: Can't lookup blockdev

and then
mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory

Then I get the common error when /dev/root failed to mount and get promoted to launch a shell (to do the manual mounting which doesn't work) or reboot.

I would really like to install NixOS on this machine but I am currently unable to. I hope someone can guide through troubleshooting. If any additional information is required, I will be happy to provide it.

To add why I closed the issue: I must have gotten very unlucky with those race conditions, because it just magically started working. Now everything looks A-OK! Thank you people so much for the work you are doing to support Linux on Apple Silicon!