Skip to content

Commit

Permalink
tests/gpu-container: abort test if secureboot is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Dec 17, 2023
1 parent 27b0569 commit 1e2283a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/gpu-container
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ EOF
fi
fi

if mokutil --sb-state | grep -Fx "SecureBoot enabled"; then
echo "SecureBoot needs to be disabled to avoid a prompt to register custom MOK (Machine-Owner Key) during DKMS" >&2
exit 1
fi

# Install dependencies
INSTALL_RECOMMENDS=yes install_deps jq nvidia-utils-525 nvidia-driver-525

Expand Down

0 comments on commit 1e2283a

Please sign in to comment.