hwe icon indicating copy to clipboard operation
hwe copied to clipboard

ublue-nvctk-cdi.service runs always

Open m2Giles opened this issue 1 year ago • 3 comments

In the Nvidia images, we have the ublue-nvctk-cdi.service to support containers.

The only dependencies this service has is if the binary exists, is executable, and we are after local-fs.target. This is problematic because it will always run even if the Nvidia modules are not loaded due to an Nvidia card not being present. For eGPUs, the Nvidia card is not present until much later in the boot process. Instead of using a service, this should be handled via udev rule since this script is dependent on the necessary hardware being present. Right now with an eGPU, you have to manually restart the service before entering any containers.

I'll try converting the service to a udev rule to test.

m2Giles avatar Dec 14 '23 21:12 m2Giles