Update mominavi to fix style error
[AGL/meta-agl-devel.git] / meta-agl-ic-container / recipes-container / container-manager-config / cm-config-agl-html5-ivi-demo / rcar-gen3 / agl-html5-ivi-demo.json
1 {
2         "name": "agl-html5-ivi-demo",
3         "role": "ivi",
4         "base": {
5                 "autoboot": false,
6                 "bootpriority": 10,
7                 "rootfs": {
8                         "path": "/opt/container/guests/agl-html5-ivi-demo/rootfs",
9                         "filesystem":   "ext4",
10                         "mode":         "rw",
11                         "blockdev": [
12                                 "/dev/mmcblk1p6",
13                                 "/dev/mmcblk1p6"
14                         ]
15                 },
16                 "lifecycle": {
17                         "halt": "SIGRTMIN+3",
18                         "reboot": "SIGTERM",
19                         "timeout": 15000
20                 },
21                 "cap": {
22                         "drop": "sys_module mac_admin mac_override",
23                         "keep": ""
24                 },
25                 "environment": [
26                         "PIPEWIRE_RUNTIME_DIR=/var",
27                         "HOME=/home/root"
28                 ]
29         },
30         "fs": {
31                 "mount": [
32                         {
33                                 "type":         "filesystem",
34                                 "from":         "tmpfs",
35                                 "to":           "run",
36                                 "fstype":       "tmpfs",
37                                 "option":       "defaults 0 0"
38                         },
39                         {
40                                 "type":         "directory",
41                                 "from":         "/sys/kernel/security",
42                                 "to":           "sys/kernel/security",
43                                 "fstype":       "none",
44                                 "option":       "ro,bind,optional 0 0"
45                         },
46                         {
47                                 "type":         "directory",
48                                 "from":         "/run/udev/data",
49                                 "to":           "run/udev/data",
50                                 "fstype":       "none",
51                                 "option":       "ro,bind,optional,create=dir"
52                         },
53                         {
54                                 "type":         "directory",
55                                 "from":         "/run/drm-lease-manager/lease-ivi",
56                                 "to":           "var/display/drm-lease-manager/lease",
57                                 "fstype":       "none",
58                                 "option":       "bind,create=file"
59                         },
60                         {
61                                 "type":         "directory",
62                                 "from":         "/run/pipewire/pipewire-0",
63                                 "to":           "var/pipewire-0",
64                                 "fstype":       "none",
65                                 "option":       "bind,optional,create=file"
66                         },
67                         {
68                                 "type":         "directory",
69                                 "from":         "/run/dlt",
70                                 "to":           "run/dlt",
71                                 "fstype":       "none",
72                                 "option":       "bind,optional,create=dir"
73                         },
74                         {
75                                 "type":         "directory",
76                                 "from":         "/opt/container/guests/agl-html5-ivi-demo/system.conf",
77                                 "to":           "etc/systemd/system.conf.d/10-environment.conf",
78                                 "fstype":       "none",
79                                 "option":       "bind,optional,create=file"
80                         }
81                 ]
82         },
83         "device": {
84                 "static": [
85                         {
86                                 "type":                 "devdir",
87                                 "from":                 "/dev/dri",
88                                 "to":                   "dev/dri",
89                                 "devnode":              "/dev/dri/card0",
90                                 "optional":             0,
91                                 "wideallow":    1,
92                                 "exclusive":    0
93                         },
94                         {
95                                 "type":                 "devdir",
96                                 "from":                 "/dev/input",
97                                 "to":                   "dev/input",
98                                 "devnode":              "/dev/input/event0",
99                                 "optional":             1,
100                                 "wideallow":    1,
101                                 "exclusive":    0
102                         },
103                         {
104                                 "type":                 "devnode",
105                                 "from":                 "/dev/pvr_sync",
106                                 "to":                   "dev/pvr_sync",
107                                 "devnode":              "/dev/pvr_sync",
108                                 "optional":             0,
109                                 "wideallow":    0,
110                                 "exclusive":    0
111                         }
112                 ],
113                 "dynamic": [
114                         {
115                                 "devpath": "/devices/platform/soc/ee0a0100.usb/usb2/",
116                                 "items": [
117                                         {
118                                                 "subsystem": "usb",
119                                                 "rule": {
120                                                         "devtype": ["usb_device","usb_interface"],
121                                                         "action": ["add", "remove"]
122                                                 },
123                                                 "behavior": {
124                                                         "injection": 1,
125                                                         "devnode": 0,
126                                                         "allow": 0,
127                                                         "permission": "rw"
128                                                 }
129                                         },
130                                         {
131                                                 "subsystem": "block",
132                                                 "rule": {
133                                                         "action": ["add", "remove","change"],
134                                                         "extra" : [
135                                                                 {
136                                                                         "checker": "exclude-fs",
137                                                                         "value": "ext4"
138                                                                 }
139                                                         ]
140                                                 },
141                                                 "behavior": {
142                                                         "injection": 1,
143                                                         "devnode": 0,
144                                                         "allow": 1,
145                                                         "permission": "rwm"
146                                                 }
147                                         }
148                                 ]
149                         },
150                         {
151                                 "devpath": "/devices/platform/soc/ee0a0100.usb/usb2/",
152                                 "items": [
153                                         {
154                                                 "subsystem": "hid",
155                                                 "rule": {
156                                                         "action": ["add", "remove"]
157                                                 },
158                                                 "behavior": {
159                                                         "injection": 1,
160                                                         "devnode": 1,
161                                                         "allow": 1,
162                                                         "permission": "rw"
163                                                 }
164                                         }
165                                 ]
166                         }
167                 ]
168         },
169         "network": {
170                 "static": [
171                         {
172                                 "type":         "veth",
173                                 "param": {
174                                         "name": "veth0",
175                                         "link": "lxcbr0",
176                                         "flags":        "up",
177                                         "hwaddr":       "00:16:3e:xx:xx:xx",
178                                         "mode": "bridge"
179                                 }
180                         }
181                 ]
182         }
183 }