hwe
hwe copied to clipboard
ublue-nvctk-cdi.service runs always
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.