Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Secure boot check does not seem to work #79

Open
ralbertazzi opened this issue Aug 18, 2021 · 0 comments
Open

Secure boot check does not seem to work #79

ralbertazzi opened this issue Aug 18, 2021 · 0 comments

Comments

@ralbertazzi
Copy link

if is_secure_boot_enabled; then

I'm running the following script on a clean COS image with Secure Boot:

#!/bin/sh -eux

NVIDIA_INSTALL_DIR_HOST="/var/lib/nvidia"
NVIDIA_INSTALL_DIR_CONTAINER="/usr/local/nvidia"

mkdir -p "${NVIDIA_INSTALL_DIR_HOST}"
mount --bind "${NVIDIA_INSTALL_DIR_HOST}" "${NVIDIA_INSTALL_DIR_HOST}"
mount -o remount,exec "${NVIDIA_INSTALL_DIR_HOST}"

/usr/bin/docker run --rm \
  --privileged \
  --net=host \
  --pid=host \
  --volume /dev:/dev \
  --volume /:/root \
  --volume ${NVIDIA_INSTALL_DIR_HOST}:${NVIDIA_INSTALL_DIR_CONTAINER} \
  --env NVIDIA_DRIVER_VERSION=450.51.06 \
  gcr.io/cos-cloud/cos-gpu-installer:latest

However, the container doesn't seem to be able to detect that Secure Boot is enabled and reboots the machine. I've run dmesg outside of the container and it actually contains the string 'Secure boot enabled'.

Side question: does this installer actually support Secure Boot or it would simply exit performing no installation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant