diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 13:38:59 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-06-15 13:38:59 -0500 |
| commit | b66742e90383357264d52494b888dc7433d51f2e (patch) | |
| tree | 8b9c5c7974b947959dce8491c031ea45ab1f6336 /archetypes/profiles | |
| parent | 85a38e3b600261ca99bf5bbeb30f3e1fc5268318 (diff) | |
| download | nixos-b66742e90383357264d52494b888dc7433d51f2e.tar.xz nixos-b66742e90383357264d52494b888dc7433d51f2e.zip | |
set boot.zfs.forceImportRoot = false by default
Diffstat (limited to 'archetypes/profiles')
| -rw-r--r-- | archetypes/profiles/zfs/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/archetypes/profiles/zfs/default.nix b/archetypes/profiles/zfs/default.nix index a3ca2e1..4841231 100644 --- a/archetypes/profiles/zfs/default.nix +++ b/archetypes/profiles/zfs/default.nix @@ -16,6 +16,13 @@ # Make docker work with zfs virtualisation.docker.storageDriver = mkZfs "zfs"; + + # Ensure root pools are safely imported (default after 26.11) + # NOTE: If NixOS fails to boot because it cannot import the root pool, + # you should boot with the zfs_force=1 option as a kernel parameter + # (e.g. by manually editing the kernel params via your bootloader). You + # should only need to do this after unclean shutdowns. + boot.zfs.forceImportRoot = mkZfs false; }; homeConfig = {}; |
