Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
[ignite] Install patched ignition early
Browse files Browse the repository at this point in the history
  • Loading branch information
fwiesel committed May 31, 2024
1 parent 4353fe1 commit b005414
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
7 changes: 1 addition & 6 deletions features/ignite/exec.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
#!/usr/bin/env bash
set -Eeuox pipefail

TEMP_DEB="$(mktemp)"
wget -O "$TEMP_DEB" 'https://repo.eu-de-1.cloud.sap/gardenlinux/ignition_2.18.0-0gardenlinux~experimental_amd64.deb'
DEBIAN_FRONTEND=noninteractive dpkg -i "$TEMP_DEB"
rm -f "$TEMP_DEB"
set -Eeuxo pipefail
24 changes: 24 additions & 0 deletions features/ignite/exec.early
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
#!/usr/bin/env bash
set -Eeuo pipefail

TEMP_DEB="$(mktemp)"

function __curl() {
read -r proto server path <<<"$(printf '%s' "${1//// }")"
DOC=/${path// //}
HOST=${server//:*}
PORT=${server//*:}
[ "${HOST}" = "${PORT}" ] && PORT=80

exec 3<>"/dev/tcp/${HOST}/$PORT"
printf 'GET %s HTTP/1.0\r\nHost: %s\r\n\r\n' "${DOC}" "${HOST}" >&3
(while read -r line; do
[ "$line" = $'\r' ] && break
done && cat) <&3
exec 3>&-
}

__curl 'http://repo.eu-de-1.cloud.sap/gardenlinux/ignition_2.18.0-0gardenlinux~experimental_amd64.deb' > "$TEMP_DEB/ignition_2.18.0-0gardenlinux~experimental_amd64.deb"

DEBIAN_FRONTEND=noninteractive dpkg -i "$TEMP_DEB"
rm -f "$TEMP_DEB"


case "$BUILDER_CNAME" in
kvm*)
Expand Down

0 comments on commit b005414

Please sign in to comment.