Skip to content

Commit 5538a81

Browse files
committed
ecs-gpu-init: fix unit dependencies on GPU drivers
The GPU driver functionality has split into two units, one for the proprietary driver and one for the open one. Depending on the version of the driver, one or both units might be present. Update the dependencies to reflect this. Also drop the "Requires", as the "After" ordering should be sufficient, and "Requires" will cause a failure if the unit is not installed. Signed-off-by: Ben Cressey <bcressey@amazon.com>
1 parent 2ec4db1 commit 5538a81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/ecs-gpu-init/ecs-gpu-init.service

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ Description=Initialize ECS GPU config
33
# This has to be executed after the kernel modules are loaded
44
# otherwise the userspace component of the driver will fail to
55
# query the /dev devices
6-
After=load-kernel-modules.service
7-
Requires=load-kernel-modules.service
6+
After=load-tesla-kernel-modules.service load-open-gpu-kernel-modules.service
87
# Block manual interactions with this service. It doesn't
98
# make sense to regenerate the GPU config file if the ECS
109
# agent won't read it when it changes

0 commit comments

Comments
 (0)