From a4010e0580fed8afe7d3d5cb53c3b2319c718792 Mon Sep 17 00:00:00 2001 From: Sarah Brofeldt Date: Tue, 18 Aug 2020 15:05:56 +0200 Subject: [PATCH] nixos/zfs: Respect forceImportAll in import service --- nixos/modules/tasks/filesystems/zfs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 9ca7c6fb3431..8589797e0bbf 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -507,6 +507,7 @@ in Type = "oneshot"; RemainAfterExit = true; }; + environment.ZFS_FORCE = optionalString cfgZfs.forceImportAll "-f"; script = (importLib { # See comments at importLib definition. zpoolCmd="${packages.zfsUser}/sbin/zpool";