forked from faddat/imager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu.json
56 lines (55 loc) · 1.59 KB
/
ubuntu.json
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
{
"variables": {},
"builders": [{
"type": "arm",
"file_urls" : ["http://cdimage.ubuntu.com/releases/20.04.1/release/ubuntu-20.04.1-preinstalled-server-arm64+raspi.img.xz"],
"file_checksum_url": "http://cdimage.ubuntu.com/releases/20.04.1/release/SHA256SUMS",
"file_checksum_type": "sha256",
"file_target_extension": "xz",
"file_unarchive_cmd": ["xz", "--decompress", "$ARCHIVE_PATH"],
"image_build_method": "reuse",
"image_path": "ubuntu-20.04.img",
"image_size": "3.1G",
"image_type": "dos",
"image_partitions": [
{
"name": "boot",
"type": "c",
"start_sector": "2048",
"filesystem": "fat",
"size": "256M",
"mountpoint": "/boot/firmware"
},
{
"name": "root",
"type": "83",
"start_sector": "526336",
"filesystem": "ext4",
"size": "2.8G",
"mountpoint": "/"
}
],
"image_chroot_env": ["PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"],
"qemu_binary_source_path": "/usr/bin/qemu-aarch64-static",
"qemu_binary_destination_path": "/usr/bin/qemu-aarch64-static"
}],
"provisioners": [
{
"type": "file",
"source": "image.bash",
"destination": "/image.bash"
},
{
"type": "shell",
"inline": [
"mv /etc/resolv.conf /etc/resolv.conf.bk",
"echo 'nameserver 8.8.8.8' > /etc/resolv.conf",
"echo 'nameserver 1.1.1.1' >> /etc/resolv.conf",
"apt update",
"apt install -y curl wget",
"bash /image.bash"
]
}
],
"post-processors": []
}