Skip to content

Commit

Permalink
nixos/zfs: Respect forceImportAll in import service
Browse files Browse the repository at this point in the history
  • Loading branch information
srhb committed Nov 11, 2020
1 parent ffe4dbf commit a4010e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/tasks/filesystems/zfs.nix
Expand Up @@ -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";
Expand Down

0 comments on commit a4010e0

Please sign in to comment.