From b66742e90383357264d52494b888dc7433d51f2e Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Mon, 15 Jun 2026 13:38:59 -0500 Subject: set boot.zfs.forceImportRoot = false by default --- archetypes/profiles/zfs/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'archetypes') 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 = {}; -- cgit v1.2.3