mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
AWS: Add sha to download-or-bust
download-or-bust was changed on the GCE side to verify a hash if passed, so we need to pass a hash in the AWS scripts that reuse this function.
This commit is contained in:
parent
3caa6caa04
commit
b058c6b3e1
@ -29,7 +29,7 @@ ensure-packages() {
|
|||||||
# TODO: Where to get safe_format_and_mount?
|
# TODO: Where to get safe_format_and_mount?
|
||||||
mkdir -p /usr/share/google
|
mkdir -p /usr/share/google
|
||||||
cd /usr/share/google
|
cd /usr/share/google
|
||||||
download-or-bust https://raw.githubusercontent.com/GoogleCloudPlatform/compute-image-packages/82b75f314528b90485d5239ab5d5495cc22d775f/google-startup-scripts/usr/share/google/safe_format_and_mount
|
download-or-bust "dc96f40fdc9a0815f099a51738587ef5a976f1da" https://raw.githubusercontent.com/GoogleCloudPlatform/compute-image-packages/82b75f314528b90485d5239ab5d5495cc22d775f/google-startup-scripts/usr/share/google/safe_format_and_mount
|
||||||
chmod +x safe_format_and_mount
|
chmod +x safe_format_and_mount
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ install-salt() {
|
|||||||
|
|
||||||
for deb in "${DEBS[@]}"; do
|
for deb in "${DEBS[@]}"; do
|
||||||
if [ ! -e "${deb}" ]; then
|
if [ ! -e "${deb}" ]; then
|
||||||
download-or-bust "${URL_BASE}/${deb}"
|
download-or-bust "" "${URL_BASE}/${deb}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user