File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
- PACKER_VERSION := 1.11.0
1
+ PACKER_VERSION := 1.10.3
2
2
PWN_HOSTNAME := pwnagotchi
3
3
PWN_VERSION := $(shell cut -d"'" -f2 < pwnagotchi/_version.py)
4
4
@@ -26,7 +26,7 @@ UNSHARE := $(UNSHARE) --uts
26
26
endif
27
27
28
28
# sudo apt-get install qemu-user-static qemu-utils
29
- all : packer image
29
+ # all: packer image
30
30
31
31
update_langs :
32
32
@for lang in pwnagotchi/locale/* /; do\
@@ -40,10 +40,13 @@ compile_langs:
40
40
./scripts/language.sh compile $$(basename $$lang) ; \
41
41
done
42
42
43
- packer :
43
+ packer : clean
44
44
curl https://releases.hashicorp.com/packer/$(PACKER_VERSION ) /packer_$(PACKER_VERSION ) _linux_amd64.zip -o /tmp/packer.zip
45
45
unzip -o /tmp/packer.zip -d /tmp
46
46
sudo mv /tmp/packer /usr/bin/packer
47
+ git clone https://github.com/solo-io/packer-builder-arm-image /tmp/packer-builder-arm-image
48
+ cd /tmp/packer-builder-arm-image && go mod download && go build
49
+ sudo cp /tmp/packer-builder-arm-image/packer-plugin-arm-image /usr/bin
47
50
48
51
# image: packer
49
52
# export LC_ALL=en_GB.UTF-8
@@ -57,7 +60,7 @@ packer:
57
60
# export LC_ALL=en_GB.UTF-8
58
61
# cd builder && sudo /usr/bin/packer init raspberrypi64.json.pkr.hcl && sudo $(UNSHARE) /usr/bin/packer build -var "pwn_hostname=$(PWN_HOSTNAME)" -var "pwn_version=$(PWN_VERSION)" raspberrypi64.json.pkr.hcl
59
62
60
- bpim4 : packer
63
+ bpim4 : clean packer
61
64
export LC_ALL=en_GB.UTF-8
62
65
cd builder && sudo /usr/bin/packer init bpim4.json.pkr.hcl && sudo $(UNSHARE ) /usr/bin/packer build -var " pwn_hostname=$( PWN_HOSTNAME) " -var " pwn_version=$( PWN_VERSION) " bpim4.json.pkr.hcl
63
66
Original file line number Diff line number Diff line change 1
1
packer {
2
2
required_plugins {
3
- arm-image = {
4
- source = " github.com/solo-io/arm-image"
5
- version = " >= 0.0.1"
6
- }
7
3
ansible = {
8
4
source = " github.com/hashicorp/ansible"
9
5
version = " >= 1.1.1"
@@ -20,7 +16,7 @@ variable "pwn_version" {
20
16
}
21
17
22
18
source "arm-image" "bpim4-pwnagotchi" {
23
- // image_type = "armbian"
19
+ image_type = " armbian"
24
20
image_arch = " arm64"
25
21
iso_url = " https://mirrors.dotsrc.org/armbian-dl/bananapim4zero/archive/Armbian_24.8.1_Bananapim4zero_bookworm_current_6.6.44.img.xz"
26
22
iso_checksum = " none"
You can’t perform that action at this time.
0 commit comments