Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cos-nvidia-gpu-installer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update
RUN apt-get install -qq pciutils gcc g++ git make dpkg-dev bc module-init-tools curl

RUN mkdir /lakitu-kernel
RUN git clone --no-checkout https://chromium.googlesource.com/chromiumos/third_party/kernel /lakitu-kernel
RUN mkdir -p /lakitu-kernel

ADD installer.sh /usr/bin/nvidia-installer.sh
RUN chmod a+x /usr/bin/nvidia-installer.sh
Expand Down
14 changes: 7 additions & 7 deletions cos-nvidia-gpu-installer/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ check_nvidia_device() {
prepare_kernel_source() {
# Checkout the correct tag.
pushd "${KERNEL_SRC_DIR}"
if ! git checkout ${LAKITU_KERNEL_SHA1}; then
until git fetch origin
do
echo "Fetching origin failed for Lakitu kernel source git repo. Retrying after 5 seconds" && sleep 5
done
git checkout ${LAKITU_KERNEL_SHA1}
fi
local -r download_url = "https://chromium.googlesource.com/chromiumos/third_party/kernel/+archive/${LAKITU_KERNEL_SHA1}.tar.gz"
local -r archive_filename = "cos-kernel.tar.gz"
until curl -sS "${download_url}" -o "${archive_filename}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this command without setting LAKITA_KERNEL_SHA and it still passed.

do
echo "Downloading COS kernel sources failed. Retrying after 5 seconds" && sleep 5
done
tar xf "${archive_filename}"

# Prepare kernel configu and source for modules.
echo "Preparing kernel sources ..."
Expand Down