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 8, 2023
1 parent 254e4c7 commit 9249f68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/changes/2023-08-08-change-nvidia-oneshot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Change nvidia.service to type oneshot (from the default "simple") so the subsequent services (configured with "Requires/After") are executed after the driver installation is successfully finished (flatcar/Flatcar#1136)
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 9249f68

Please sign in to comment.