Skip to content

Commit cbe7079

Browse files
authored
Merge pull request #102 from jacobweinstock/update-for-new-hook-release
Update handling of Hook for new re-release:
2 parents f10a1f0 + a3e9f6a commit cbe7079

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

deploy/compose/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#OSIE_DOWNLOAD_URL="https://tinkerbell-oss.s3.amazonaws.com/osie-uploads/osie-1790-23d78ea47f794d0e5c934b604579c26e5fce97f5.tar.gz"
2-
OSIE_DOWNLOAD_URL="https://github.com/tinkerbell/hook/releases/download/5.10.57/hook-x86_64.tar.gz"
2+
OSIE_DOWNLOAD_URL="https://github.com/tinkerbell/hook/releases/download/5.10.57/hook_x86_64.tar.gz"
33
TINKERBELL_USE_HOOK="true"
44
TINK_CLI_IMAGE="quay.io/tinkerbell/tink-cli:sha-8ea8a0e5"
55
TINK_SERVER_IMAGE="quay.io/tinkerbell/tink:sha-8ea8a0e5"

deploy/compose/osie/lastmile.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ osie_extract() {
1717
local source_dir="$1"
1818
local dest_dir="$2"
1919
local filename="$3"
20-
tar -zxvf "${source_dir}"/"${filename}".tar.gz -C "${dest_dir}" --strip-components 1
20+
tar -zxvf "${source_dir}"/"${filename}".tar.gz -C "${dest_dir}"
2121
}
2222

2323
# osie_move_helper_scripts moves workflow helper scripts to the workflow directory
@@ -62,13 +62,12 @@ main() {
6262
fi
6363

6464
if [ "${use_hook}" == "true" ]; then
65-
if [ ! -f "${source_dir}"/hook-x86_64-kernel ] && [ ! -f "${source_dir}"/hook-x86_64-initrd.img ]; then
65+
if [ ! -f "${source_dir}"/vmlinuz-x86_64 ] && [ ! -f "${source_dir}"/initramfs-x86_64 ]; then
6666
echo "extracting hook..."
6767
osie_extract "${extract_dir}" "${source_dir}" "${filename}"
6868
else
6969
echo "hook files already exist, not extracting"
7070
fi
71-
hook_rename_files "${source_dir}"/hook-x86_64-kernel "${source_dir}"/hook-x86_64-initrd.img "${source_dir}"
7271
else
7372
if [ ! -f "${source_dir}"/workflow-helper.sh ] && [ ! -f "${source_dir}"/workflow-helper-rc ]; then
7473
echo "extracting osie..."

0 commit comments

Comments
 (0)