mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
Changes to nvidia.service to allow ordering on the subsequent services
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 : https://github.com/flatcar/Flatcar/issues/1136
This commit is contained in:
parent
254e4c7a41
commit
9249f68f84
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