forked from mkaczanowski/packer-builder-arm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archlinuxarm.json
57 lines (57 loc) · 1.59 KB
/
archlinuxarm.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
57
{
"variables": {},
"builders": [{
"type": "arm",
"file_urls" : ["http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz"],
"file_checksum_url": "http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz.md5",
"file_checksum_type": "md5",
"file_unarchive_cmd": ["bsdtar", "-xpf", "$ARCHIVE_PATH", "-C", "$MOUNTPOINT"],
"file_target_extension": "tar.gz",
"image_build_method": "new",
"image_path": "raspberry-pi.img",
"image_size": "2G",
"image_type": "dos",
"image_partitions": [
{
"name": "boot",
"type": "c",
"start_sector": "8192",
"filesystem": "vfat",
"size": "256M",
"mountpoint": "/boot"
},
{
"name": "root",
"type": "83",
"start_sector": "532480",
"filesystem": "ext4",
"size": "0",
"mountpoint": "/"
}
],
"qemu_binary_source_path": "/usr/bin/qemu-arm-static",
"qemu_binary_destination_path": "/usr/bin/qemu-arm-static"
}],
"provisioners": [
{
"type": "shell",
"inline": [
"pacman-key --init",
"pacman-key --populate archlinuxarm",
"mv /etc/resolv.conf /etc/resolv.conf.bk",
"echo 'nameserver 8.8.8.8' > /etc/resolv.conf",
"pacman -Sy --noconfirm --needed",
"pacman -S parted --noconfirm --needed"
]
},
{
"type": "file",
"source": "scripts/boards/raspberry-pi/resizerootfs",
"destination": "/tmp"
},
{
"type": "shell",
"script": "scripts/boards/raspberry-pi/bootstrap_resizerootfs.sh"
}
]
}