tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
757 stars 76 forks source link

Installer can't mount /dev/root on MBP M1 #60

Closed nik012003 closed 1 year ago

nik012003 commented 1 year ago

Hello, I'm facing the same exact problem as #17 . After dd'ing the generated iso to the usb drive and successfully booting grub and the kernel, it prints: mount: mounting /dev/root on /mnt-root/iso failed: No such file or directory I tried unplugging and replugging the usb while in the interactive shell, and it's recognized as /dev/sda, but I can't mount and fdisk says: Disk /dev/sda doesn't contain a valid partition table

EDIT: using the .iso from the releases worked fine, so it's either an issue with my build or the newer versions of the packages included in the latest build process

tpwrules commented 1 year ago

How exactly did you build the .iso? Did you use the same nixpkgs version as the release?

The release .iso might have worked by chance. This failure to mount is intermittent in my experience, even with the same computer, .iso, and flash drive.

nik012003 commented 1 year ago

I followed the steps defined here: https://github.com/tpwrules/nixos-apple-silicon/blob/main/docs/uefi-standalone.md Executed those commands on arch linux on arm.

tpwrules commented 1 year ago

I followed those steps exactly on my M1 Max MBP and got four successful boots and one failed boot. There must be a race condition or timing issue. It sounds like you did nothing wrong, you just got unlucky and didn't try again. There's not much I can do about that.