Skip to content

Commit

Permalink
Add -S to curl command when fetching generic headers
Browse files Browse the repository at this point in the history
`tar` can't seem to read what is being passed to it without this,
see jupyterhub/mybinder.org-deploy#2171 (comment)
for the error message.
  • Loading branch information
yuvipanda committed May 22, 2022
1 parent 49ac016 commit a34abd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/init/fetch-linux-headers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ generate_headers()
}

fetch_cos_linux_sources()
{
{S
echo "Fetching upstream kernel sources."
mkdir -p "${BUILD_DIR}"
curl -s "https://storage.googleapis.com/cos-tools/${BUILD_ID}/kernel-src.tar.gz" \
Expand All @@ -49,7 +49,7 @@ fetch_generic_linux_sources()

echo "Fetching upstream kernel sources for ${kernel_version}."
mkdir -p "${BUILD_DIR}"
curl -sL "https://www.kernel.org/pub/linux/kernel/v${major_version}.x/linux-$kernel_version.tar.gz" \
curl -sSL "https://www.kernel.org/pub/linux/kernel/v${major_version}.x/linux-$kernel_version.tar.gz" \
| tar --strip-components=1 -xzf - -C "${BUILD_DIR}"
}

Expand Down

0 comments on commit a34abd6

Please sign in to comment.