From e90920bb902d38096d60fb41baecbdd313bb5345 Mon Sep 17 00:00:00 2001 From: buianhhuy96 Date: Wed, 16 Oct 2024 11:48:11 +0300 Subject: [PATCH] fmo-tool should always generate DDP config on boot Signed-off-by: Anh Huy Bui --- modules/dynamic-device-passthrough-services-host/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/dynamic-device-passthrough-services-host/default.nix b/modules/dynamic-device-passthrough-services-host/default.nix index 7349c5f..1a9cb31 100644 --- a/modules/dynamic-device-passthrough-services-host/default.nix +++ b/modules/dynamic-device-passthrough-services-host/default.nix @@ -19,9 +19,7 @@ in { systemd.services."fmo-dynamic-device-passthrough-service" = { script = '' - if ! [ -f /var/host/vmddp.conf ]; then - ${pkgs.fmo-tool}/bin/fmo-tool ddp generate - fi + ${pkgs.fmo-tool}/bin/fmo-tool ddp generate ${pkgs.vhotplug}/bin/vhotplug -a -c /var/host/vmddp.conf ''; serviceConfig = {