mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-12 22:21:28 +01: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
|
Description=NVIDIA Configure Service
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
Before=containerd.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=oneshot
|
||||||
|
RemainsAfterExit=true
|
||||||
Restart=no
|
Restart=no
|
||||||
Environment=PATH=/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
Environment=PATH=/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
|
||||||
ExecStart=/usr/lib/nvidia/bin/setup-nvidia
|
ExecStart=/usr/lib/nvidia/bin/setup-nvidia
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user