/usr/share/live/build/hooks/normal/0440-update-nvidia-alternative.hook.chroot is in open-infrastructure-system-build 20161101-lts2-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | #!/bin/sh
set -e
# Use newest nvidia version by default
if [ -e /etc/alternatives/nvidia ] && [ -e /usr/lib/nvidia/current ]
then
update-alternatives --quiet --set nvidia /usr/lib/nvidia/current
fi
|