Skip to content

Commit

Permalink
install-twoliter: always use host arch for twoliter
Browse files Browse the repository at this point in the history
If, when you first installed twoliter, you were building for a host
architecture that differed from your target, twoliter would use the
wrong checksum when validating the installed binary.
  • Loading branch information
cbgbt committed Sep 19, 2024
1 parent 540f52b commit f64ffe9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ TWOLITER_VERSION ?= "0.4.6"
TWOLITER_SHA256_AARCH64 ?= "12ac3f5a6c641e29481c79289bd07cf1c3494a65e3d283d582feb1d28d8bf2a7"
TWOLITER_SHA256_X86_64 ?= "4a2db7c4d0aac75c6b682336539ee57371cfb6dfea81689d07fc1f4a940fd5c5"
KIT ?= bottlerocket-core-kit
ARCH ?= $(shell uname -m)
UNAME_ARCH = $(shell uname -m)
ARCH ?= $(UNAME_ARCH)
VENDOR ?= bottlerocket

ifeq ($(ARCH), aarch64)
ifeq ($(UNAME_ARCH), aarch64)
TWOLITER_SHA256=$(TWOLITER_SHA256_AARCH64)
else
TWOLITER_SHA256=$(TWOLITER_SHA256_X86_64)
Expand Down

0 comments on commit f64ffe9

Please sign in to comment.