mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
Automatic regeneration of /var/run/cdi/nvidia.yaml New units: • nvidia-cdi-refresh.service – one-shot wrapper for nvidia-ctk cdi generate (adds sleep + required caps). • nvidia-cdi-refresh.path – fires on driver install/upgrade via modules.dep.bin changes. Packaging • RPM %post reloads systemd and enables the path unit on fresh installs. • DEB postinst does the same (configure, skip on upgrade). Result: CDI spec is always up to date Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
19 lines
795 B
Makefile
Executable File
19 lines
795 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms
|
|
chmod 755 debian/$(shell dh_listpackages)/usr/bin/nvidia-container-runtime-hook || true
|
|
chmod 755 debian/$(shell dh_listpackages)/usr/bin/nvidia-container-runtime || true
|
|
chmod 755 debian/$(shell dh_listpackages)/usr/bin/nvidia-container-runtime.cdi || true
|
|
chmod 755 debian/$(shell dh_listpackages)/usr/bin/nvidia-container-runtime.legacy || true
|
|
chmod 755 debian/$(shell dh_listpackages)/usr/bin/nvidia-ctk || true
|
|
chmod 755 debian/$(shell dh_listpackages)/usr/bin/nvidia-cdi-hook || true
|
|
chmod 644 debian/$(shell dh_listpackages)/etc/systemd/system/nvidia-cdi-refresh.service || true
|
|
chmod 644 debian/$(shell dh_listpackages)/etc/systemd/system/nvidia-cdi-refresh.path || true
|