I'm trying to run shutdown scripts on GCE instances with an NVIDIA K80 GPU (guest accelerator). These instances (n1-standard-1) are running a custom image of Ubuntu 16.04 (which has the NVIDIA driver installed, as in this tutorial: https://cloud.google.com/compute/docs/gpus/add-gpus#install-driver-manual) in the us-east-1d zone.
The issue is that the shutdown script isn't being run when the instance has the NVIDIA driver installed, but consistently executes if the driver isn't installed (even when the GPU is attached). This is happening regardless of whether the instance is preemptible or not.
Running the shutdown script on the standard Ubuntu 16.04 OS image works, but as soon as the driver is installed, and the instance restarted, shutting it down doesn't trigger the script anymore. Interestingly, /var/log/syslog contains no message of the shutdown script. I would either expect an error or the message that no shutdown script was found, but none of these appear.
Any help or information about whether this is reproducible or just some mistake on my part would be greatly appreciated.