nixos-in-place icon indicating copy to clipboard operation
nixos-in-place copied to clipboard

Use drive UUID instead of /dev name

Open werner291 opened this issue 4 years ago • 0 comments

Greetings!

I recently ran into a bizzarre problem where my NixOS installation suddenly wouldn't boot.

As it turned out, through some mysterious shenanigans that I have yet to exorcize, /dev/sda1 no longer referred to the partition that contained NixOS, instead referring to a small partition that contained what appeared to be some old Debian-related junk. The NixOS installation was suddenly in /dev/sda2. I finally did get the installation to boot again after re-labeling things in the partition table.

Proposed fix: During stage 1, mount the drive by UUID instead of its' name in /dev.

werner291 avatar Sep 25 '19 10:09 werner291