openzfs/openzfs-docs

NixOS: Add documentation on recovering root ZFS with instalation media

mariaa144 opened this issue · 4 comments

Provide a section which explains how to use a NixOS USB to boot and correctly mount a root ZFS setup.

I have had a couple of instances where I needed to boot my setup system but I didn't know how to properly mount ZFS and rebuild the environment. The first time I didn't know my root password on the first install. The second time I didn't have networking working on the first install so I couldn't rebuild with the right packages.

ne9z commented

I agree it isn't needed but it would be helpful I think. In my case I had no earlier snapshots because it was original install. Perhaps I'm not an advanced user. I ran into trouble trying to figure out how to mount all the partitions correctly so I could rebuild.

For the password, I think I had a special character in my password which broke the script and made my password different than I expected. It happened on an older version of the guide which doesn't have the same issue now.

I'm only using a wire and DNS wasn't working by default without NetworkManager. This surprised me. I also tried to enable systemd-resolved.service but still no DNS. Reinstalled with NetworkManager enable worked for me. I didn't try dhclient.

ne9z commented
ne9z commented

Close this as WONTFIX. Instructions for chroot is not needed. It will only make the guide longer and make it less maintainable. My priority is to make the first installation boot.