Signed-off-by: Hannes Duerr <[email protected]> --- debian/[email protected] | 12 ++++++++++++ debian/rules | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 debian/[email protected]
diff --git a/debian/[email protected] b/debian/[email protected] new file mode 100644 index 0000000..b3c1220 --- /dev/null +++ b/debian/[email protected] @@ -0,0 +1,12 @@ +[Unit] +Description=Enable NVIDIA SR-IOV for PCI ID %i +After=network.target nvidia-vgpud.service nvidia-vgpu-mgr.service +Before=pve-guests.service + +[Service] +Type=oneshot +ExecStartPre=/bin/sleep 5 +ExecStart=/usr/lib/nvidia/sriov-manage -e %i + +[Install] +WantedBy=multi-user.target diff --git a/debian/rules b/debian/rules index 218df65..fe9a05d 100755 --- a/debian/rules +++ b/debian/rules @@ -6,3 +6,6 @@ %: dh $@ + +override_dh_installsystemd: + dh_installsystemd --no-start --no-enable --name nvidia-vgpud@ [email protected] -- 2.39.5 _______________________________________________ pve-devel mailing list [email protected] https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
