nixos/zfs: Respect forceImportAll in import service
This commit is contained in:
parent
ffe4dbf32f
commit
a4010e0580
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user