-
Notifications
You must be signed in to change notification settings - Fork 0
/
Picade.pkr.hcl
81 lines (69 loc) · 1.69 KB
/
Picade.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
source "arm" "raspios" {
file_urls = [
"https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2023-05-03/2023-05-03-raspios-bullseye-arm64.img.xz"
]
file_checksum_url = "https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2023-05-03/2023-05-03-raspios-bullseye-arm64.img.xz.sha256"
file_checksum_type = "sha256"
file_target_extension = "xz"
file_unarchive_cmd = ["xz", "--decompress", "$ARCHIVE_PATH"]
# Image Options
image_build_method = "resize"
image_path = "Pi4J-Picade-OS.img"
image_type = "dos"
image_size = "6G"
# Boot Partition
image_partitions {
name = "boot"
type = "c"
start_sector = 8192
filesystem = "vfat"
size = "256M"
mountpoint = "/boot"
}
# System Partition
image_partitions {
name = "root"
type = "83"
start_sector = 532480
filesystem = "ext4"
size = "0"
mountpoint = "/"
}
# QEMU Toolchain
qemu_binary_source_path = "/usr/bin/qemu-aarch64-static"
qemu_binary_destination_path = "/usr/bin/qemu-aarch64-static"
}
build {
sources = [
"sources.arm.raspios"
]
provisioner "file" {
source = "./base/resources"
destination = "/tmp/res-base"
}
provisioner "file" {
source = "./picade/resources"
destination = "/tmp/res-picade"
}
provisioner "shell" {
script = "./base/base.sh"
}
provisioner "shell" {
script = "./picade/picade.sh"
}
post-processor "compress" {
output = "Pi4J-Picade-OS.img.zip"
compression_level = 6
}
post-processor "artifice" {
files = [
"Pi4J-Picade-OS.img.zip"
]
}
post-processor "checksum" {
checksum_types = [
"sha256"
]
output = "Pi4J-Picade-OS.img.sha256"
}
}