-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
ZFS dataset with specified non-legacy mount point does not automount #27183
Comments
We do not support |
Being able to use non-legacy mountpoints would definitely make ZFS alot easier to use on NixOS especially when creating ephemeral datasets and subdatasets for various version controlled workspaces. |
zfsonlinux has implemented a systemd generator now in zfs master: openzfs/zfs#7329 |
any updates on having the zol systemd generator integrated into NixOS? |
So, one possible workaround for using zfs native mounts is adding only the root filesystem mountpoint to /etc/nixos/hardware-configuration.nix (just so it doesn't throw an error) and rebuilding your system with zfs datasets (including the root dataset) set to native mounts. |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
I opened a new more actionable issue: #89396 which solves the problem. |
Issue description
I expected to see all the mount points associated with all ZFS datasets to be mounted at boot. In this case that means that doing
ls /a
where zpool/a is non-empty would return files.zfs-import.target
status according to systemd tools wasdead
and that's not supposed to happen.This code is rather suspicious:
@
nixpkgs/pkgs/os-specific/linux/zfs/default.nix
Line 88 in 0518ec0
The zfs-import service is the service which seems to be related in all the reports surrounding this issue and seems a critical component, which cannot just be deleted.
@Mic92 (since it appears you worked most recently on the code)
The text was updated successfully, but these errors were encountered: