Skip to content

Commit

Permalink
Wait for networking before loading nvidia modules (#1962)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikolay Kvetsinski <kvetsins@amazon.com>
  • Loading branch information
nkvetsinski and Nikolay Kvetsinski committed Sep 10, 2024
1 parent c6ea158 commit fcab352
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/al2023/runtime/gpu/nvidia-kmod-load.service
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[Unit]
Description=Loading NVIDIA kernel modules
# load modules after cloud-init
After=cloud-final.service
Requires=cloud-final.service
Before=nvidia-persistenced.service
# the script needs to use IMDS, so wait for the network to be up to avoid any flakiness
After=network-online.target
Wants=network-online.target
Before=nvidia-fabricmanager.service nvidia-persistenced.service

[Service]
Type=oneshot
Expand Down

0 comments on commit fcab352

Please sign in to comment.