Skip to content

Commit

Permalink
Changes to nvidia.service to allow ordering on the subsequent services
Browse files Browse the repository at this point in the history
When changed to oneshot, the subsequent services wiill actually wait for the nvidia.service to finish, i.e. wait for drivers to be installed. The subsequent services can be configured to wait for nvidia.service. This needs to be coupled with
RemainAfterExit=yes to ensure it doesn't get kicked-off automatically again.
Solves : flatcar/Flatcar#1136
  • Loading branch information
shsamkit committed Aug 4, 2023
1 parent 254e4c7 commit fcf7b9d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
Description=NVIDIA Configure Service
Wants=network-online.target
After=network-online.target
Before=containerd.target

[Service]
Type=simple
Type=oneshot
RemainsAfterExit=true
Restart=no
Environment=PATH=/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
ExecStart=/usr/lib/nvidia/bin/setup-nvidia
Expand Down

0 comments on commit fcf7b9d

Please sign in to comment.