]> git.proxmox.com Git - mirror_lxc.git/commit - hooks/nvidia
suppress false-negative error in templates and nvidia hook
authorLukas Pirl <git@lukas-pirl.de>
Mon, 22 Jul 2019 12:29:52 +0000 (14:29 +0200)
committerLukas Pirl <git@lukas-pirl.de>
Mon, 22 Jul 2019 12:39:23 +0000 (14:39 +0200)
commit16a312e118749caf1c4bef3c9553b0564336626b
treec67ae5006b6e7bf61e2c2dea442dd1a687779f81
parent57c73b9f90fe672659b7b752bff445554791c30e
suppress false-negative error in templates and nvidia hook

``/proc`` might be mounted with ``hidepid=2``.
This makes ``/proc/1/…`` appear absent for non-root users.
When using the templates or the nvidia hook as a non-root user
(e.g., when creating unprivileged containers) the error
"/proc/1/uid_map: No such file or directory" is printed.
Since the script works correctly despite the error, this error
message might be confusing for users.

Signed-off-by: Lukas Pirl <git@lukas-pirl.de>
hooks/nvidia
templates/lxc-busybox.in
templates/lxc-download.in
templates/lxc-local.in
templates/lxc-oci.in