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

This commit is contained in:
Naïm Favier 2022-12-04 14:42:24 +01:00
parent e38618a657
commit f9743988ad
No known key found for this signature in database
GPG key ID: 95AFCE8211908325
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]