]> git.ipfire.org Git - thirdparty/lxc.git/commit
hooks: change the semantic of NVIDIA_VISIBLE_DEVICES="" 2126/head
authorFelix Abecassis <fabecassis@nvidia.com>
Fri, 2 Feb 2018 14:19:13 +0000 (06:19 -0800)
committerFelix Abecassis <fabecassis@nvidia.com>
Fri, 2 Feb 2018 14:19:13 +0000 (06:19 -0800)
commitb87243830e3b5e95fa31a17cf1bfebe55353bf13
tree5d7cf9b267e9ddeff965c0c76301f5b79e1dbb83
parentb046bbab2e2746051afe511b6bdcd84bec215d30
hooks: change the semantic of NVIDIA_VISIBLE_DEVICES=""

With LXC, you can override the value of an environment variable to
null, but you can't unset an existing variable.

The NVIDIA hook was previously activated when NVIDIA_VISIBLE_DEVICES
was set to null. As a result, it was not possible to disable the hook
by overriding the environment variable in the configuration.

The hook can now be disabled by setting NVIDIA_VISIBLE_DEVICES to
null or to the new special value "void".

Signed-off-by: Felix Abecassis <fabecassis@nvidia.com>
hooks/nvidia