Stop SATA-HAT after umount.target is reached

This commit is contained in:
coolneng 2021-07-28 12:47:21 +02:00
parent 95c593c9eb
commit e4c08419bd
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 1 deletions

View File

@ -42,9 +42,10 @@ in {
${pkgs.bash}/bin/bash -c "/etc/nixos/scripts/SATA-hat.sh off"
'';
};
before = [ "zfs-import.target" "zfs-import-vault.service" ];
before = [ "zfs-import.target" "zfs-import-vault.service" "umount.target" ];
requires = [ "systemd-udev-settle.service" ];
after = [ "systemd-udev-settle.service" ];
conflicts = [ "umount.target" ];
};
# HACK: restart services dependent on ZFS afer mount