mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 22:16:58 +02:00
Merge pull request #1047 from shsamkit/main
Changes to nvidia.service to allow ordering on the subsequent services
This commit is contained in:
commit
393d94f2a4
1
changelog/changes/2023-08-08-change-nvidia-oneshot.md
Normal file
1
changelog/changes/2023-08-08-change-nvidia-oneshot.md
Normal file
@ -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)
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user