ZFS: Difference between revisions

imported>Sjau
mNo edit summary
imported>Mic92
update install iso situation
Line 357: Line 357:
==Regarding installation of NixOS to ZFS direct from installation media==
==Regarding installation of NixOS to ZFS direct from installation media==


* Users coming to NixOS from other distributions should note that you don’t need to make your own ISO for ZFS support, you can enable it in the existing ISO at run time using the instructions above! ([https://discourse.nixos.org/t/install-report-from-new-user/1390/9 source])
* Since [https://github.com/NixOS/nixpkgs/pull/51090 18.09] the installation iso comes with zfs by default again.
* It is also possible to build a custom installation ISO supporting ZFS - see [https://nixos.org/nixos/manual/index.html#sec-building-cd creation instructions in the manual]. ([https://discourse.nixos.org/t/install-report-from-new-user/1390/4 source])
* For older versions it is still possible to enable it in the existing ISO at runtime adding:
* According to a [https://discourse.nixos.org/t/install-report-from-new-user/1390/5 2018-11-08 post]: ''We had zfs in past in the default installer, but removed it due some people having concerns regarding the license. Realistically I don’t see any company soon to sue us for that. I guess somebody could sneak in an iso image automatically build on travis-ci or so and hope for the best. I would always recommend with zfsonlinux and systemd to use the legacy mounts. Automounts are probablematic until we have a way to inform systemd that orders all the mounts to be aware of the zfs pools.''
 
<syntaxHighlight lang=nix>
  boot.supportedFilesystems = [ "zfs" ];
}
</syntaxHighlight>
 
to the iso's configuration.nix followed by a <code>nixos-rebuild switch</code>
([https://discourse.nixos.org/t/install-report-from-new-user/1390/9 source])
 


== Need more info? ==
== Need more info? ==