ZFS: Difference between revisions
imported>2r updates for root on zfs guide, boot.zfs.forceImportAll now false by default |
imported>2r disable zfs mount service |
||
Line 5: | Line 5: | ||
* If you are running within a VM and NixOS fails to import the zpool on reboot, you may need to add <syntaxhighlight lang="nix" inline>boot.zfs.devNodes = "/dev/disk/by-path";</syntaxhighlight> to your configuration.nix file. | * If you are running within a VM and NixOS fails to import the zpool on reboot, you may need to add <syntaxhighlight lang="nix" inline>boot.zfs.devNodes = "/dev/disk/by-path";</syntaxhighlight> to your configuration.nix file. | ||
* If possible, use legacy mountpoints <code>zfs create -o mountpoint=legacy</code> and declare mountpoints with <code>fileSystems."/mount/point" = {};</code>. ZFS native mountpoints are not managed as part of the system state. This can lead to conflicts if ZFS mount service is also enabled for the same datasets. Disable it with <code>systemd.services.zfs-mount.enable = false;</code>. | |||
== Enable ZFS support == | == Enable ZFS support == |