nixos/zfs: Respect forceImportAll in import service

This commit is contained in:
Sarah Brofeldt
2020-11-11 18:45:14 +01:00
parent ffe4dbf32f
commit a4010e0580
+1
View File
@@ -507,6 +507,7 @@ in
Type = "oneshot"; Type = "oneshot";
RemainAfterExit = true; RemainAfterExit = true;
}; };
environment.ZFS_FORCE = optionalString cfgZfs.forceImportAll "-f";
script = (importLib { script = (importLib {
# See comments at importLib definition. # See comments at importLib definition.
zpoolCmd="${packages.zfsUser}/sbin/zpool"; zpoolCmd="${packages.zfsUser}/sbin/zpool";