mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-05 12:31:12 +02:00
Users have reported that in some cases the nvidia.service fails because /opt/nvidia/current is a directory and the symbolic link gets created inside it. I have no idea how we get there, but to make the service robust in the face of this kind of issue: - remove the directory if it exists - use `-T` with ln to ensure that symbolic link creation fails if `current` is a directory Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>