linuxPackages.hyperv-daemons: add path conditions for kvp and vss

(cherry picked from commit f9743988ad)
This commit is contained in:
Naïm Favier
2022-12-04 14:42:24 +01:00
committed by github-actions[bot]
parent 9714d836c9
commit 2b44b63ead
2 changed files with 3 additions and 5 deletions

View File

@@ -56,8 +56,6 @@ in {
systemd = {
packages = [ config.boot.kernelPackages.hyperv-daemons.lib ];
services.hv-vss.unitConfig.ConditionPathExists = [ "/dev/vmbus/hv_vss" ];
targets.hyperv-daemons = {
wantedBy = [ "multi-user.target" ];
};

View File

@@ -73,9 +73,9 @@ in stdenv.mkDerivation {
buildCommand = ''
system=$lib/lib/systemd/system
install -Dm444 ${service "fcopy" "file copy (FCOPY)" "hv_fcopy" } $system/hv-fcopy.service
install -Dm444 ${service "kvp" "key-value pair (KVP)" "" } $system/hv-kvp.service
install -Dm444 ${service "vss" "volume shadow copy (VSS)" "" } $system/hv-vss.service
install -Dm444 ${service "fcopy" "file copy (FCOPY)" "hv_fcopy" } $system/hv-fcopy.service
install -Dm444 ${service "kvp" "key-value pair (KVP)" "hv_kvp" } $system/hv-kvp.service
install -Dm444 ${service "vss" "volume shadow copy (VSS)" "hv_vss" } $system/hv-vss.service
cat > $system/hyperv-daemons.target <<EOF
[Unit]