zfs: Fix "zfs-sync" for modern systemd

(cherry picked from commit deb6c6e052a7c7d255835cb50ea2d39890c817a8)
release-18.03-flake
Svein Ove Aas 2018-06-09 00:06:22 +01:00 committed by Jörg Thalheim
parent 19d04024ff
commit cc1b088a94
1 changed files with 3 additions and 0 deletions

View File

@ -401,6 +401,9 @@ in
nameValuePair "zfs-sync-${pool}" {
description = "Sync ZFS pool \"${pool}\"";
wantedBy = [ "shutdown.target" ];
unitConfig = {
DefaultDependencies = false;
};
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;