nixos/zfs: Respect forceImportAll in import service

This commit is contained in:
Sarah Brofeldt 2020-08-18 15:05:56 +02:00
parent ffe4dbf32f
commit a4010e0580

View file

@ -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";