-
Notifications
You must be signed in to change notification settings - Fork 0
/
packer-raspberry-pi-os-lite.json
49 lines (49 loc) · 1.32 KB
/
packer-raspberry-pi-os-lite.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
{
"variables": {
},
"builders": [
{
"type": "arm-image",
"iso_url": "https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-03-25/2021-03-04-raspios-buster-armhf-lite.zip",
"iso_checksum": "sha256:ea92412af99ec145438ddec3c955aa65e72ef88d84f3307cea474da005669d39",
"target_image_size": 2147483648
}
],
"provisioners": [
{
"type": "file",
"source": "./rasp.png",
"destination": "/home/pi/rasp.png"
},
{
"type": "file",
"source": "./scripts/.bash_profile",
"destination": "/home/pi/.bash_profile"
},
{
"type": "file",
"source": "./scripts/.xinitrc",
"destination": "/home/pi/.xinitrc"
},
{
"type": "file",
"source": "./scripts/splashscreen.service",
"destination": "/etc/systemd/system/splashscreen.service"
},
{
"type": "shell",
"inline": [
"echo 'Install APT Packages'",
"echo nameserver 8.8.8.8 > /etc/resolv.conf",
"apt-get update",
"apt-get -y install --no-install-recommends xserver-xorg-video-all xserver-xorg-input-all xserver-xorg-core xinit x11-xserver-utils fbi curl",
"rm -f /etc/motd",
"chown pi:pi -R /home/pi/"
]
},
{
"type": "shell",
"script": "./scripts/run.sh"
}
]
}