-
Notifications
You must be signed in to change notification settings - Fork 5
/
Resize_Partition.json
111 lines (111 loc) · 3.26 KB
/
Resize_Partition.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"builders": [
{
"accelerator": "tcg",
"boot_command": [
],
"boot_wait": "5m",
"disk_interface": "virtio",
"disk_size": 5000,
"format": "qcow2",
"headless": false,
"iso_checksum": "{{user `sum_local`}}",
"iso_checksum_type": "md5",
"iso_url": "{{user `url_local`}}",
"net_device": "virtio-net",
"output_directory": "hello_world",
"qemu_binary": "qemu-system-arm",
"qemuargs": [
[
"-m",
"1024"
],
[
"-boot",
"order=ncd"
],
[
"-machine",
"vexpress-a9,accel=tcg"
],
[
"-cpu",
"cortex-a9"
],
[
"-kernel",
"{{user `kernel`}}"
],
[
"-append",
"root=/dev/mmcblk0p2 mem=1024M devtmpfs.mount=0 rw"
],
[
"-name",
"Qemu-preatition_rebuilt"
],
[
"-drive",
"file={{user `url_local`}},if=sd,cache=writeback"
],
[
"-net",
"nic,macaddr=00:16:3e:00:00:01"
],
[
"-netdev",
"id=user.0,type=user"
],
[
"-net",
"user,hostfwd=tcp::2223-:22"
],
[
"-device",
"virtio-net-device,netdev=user.0"
],
[
"-initrd",
"{{user `init`}}"
],
[
"-display",
"{{user `display`}}"
]
],
"shutdown_command": "echo '{{user `password`}}' | sudo shutdown now",
"shutdown_timeout":"5m",
"ssh_host_port_min": 2223,
"ssh_host_port_max": 2223,
"ssh_port": 22,
"ssh_password": "raspberry",
"ssh_username": "pi",
"ssh_wait_timeout": "30m",
"type": "qemu",
"vm_name": "Raspbian-Forged"
}
],
"provisioners": [
{
"execute_command": "echo '{{user `password_acc`}}' | {{.Vars}} sudo -E -S bash '{{.Path}}'",
"start_retry_timeout": "10m",
"scripts": [
"scripts/utility/hello_world.sh",
"scripts/utility/rebuild_partition.sh",
"scripts/manage/reboot.sh",
"scripts/utility/resize_partition.sh",
"scripts/utility/hello_world.sh"
],
"type": "shell"
}
],
"variables": {
"password": "raspberry",
"sum_local": "temporary",
"url_local": "temporary",
"user": "pi",
"display" : "none",
"kernel" : "temporary",
"init" : "temporary"
}
}