-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
nixos-anywhere does not export ZFS pools before rebooting #156
Comments
I guess we can try to run zfs export -a everytime before the final reboot? |
Yes, that seems sensible to me. 👍 |
The disko pr was applied. Can we close this? |
I currently still have this issue, despite that PR being merged into disko. Even with |
Also you only ever need forceImportRoot set to false for network-based block devices like iscsi. Otherwise your local nvme never gets accidentally used twice. iscsi was also the primary use case of this check. |
That's a different issue than. Check that your hardware-configuration.nix has all required kernel modules to set up your block device driver, i.e. the nvme driver for nvme. |
Describe the bug
ZFS pools are (apparently) not exported prior to reboot, and may fail to import on first boot.
To Reproduce
Steps to reproduce the behavior:
<disko/example/zfs.nix>
boot.zfs.forceImportRoot = false;
in the NixOS config. This is “highly recommended” by NixOS' own docsnixos-anywhere $target
Observed behaviour
System installs successfully, reboots, then initramfs fails to import the zpool.
Expected behavior
Successful import and boot.
System information
Current
nixos-anywhere
HEAD (e516d37)Target was a Lenovo x230, booted on the current NixOS minimal install image (nixos-minimal-23.05.1950.fcc147b1e93-x86_64-linux.iso)
Additional context
Things work properly when running
nixos-anywhere --no-reboot
and manually runningzpool export -a
prior to rebooting.The text was updated successfully, but these errors were encountered: