Fix conditional check to out of tree image directory setting
[AGL/meta-agl-devel.git] / meta-agl-ic-container / dynamic-layers / meta-raspberrypi / recipes-container / container-manager-config / cm-config-agl-html5-ivi-demo / 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/mmcblk0p8",
13                                 "/dev/mmcblk0p8"
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":         "/opt/container/guests/agl-html5-ivi-demo/system.conf",
70                                 "to":           "etc/systemd/system.conf.d/10-environment.conf",
71                                 "fstype":       "none",
72                                 "option":       "bind,optional,create=file"
73                         }
74                 ]
75         },
76         "device": {
77                 "static": [
78                         {
79                                 "type":                 "devdir",
80                                 "from":                 "/dev/dri",
81                                 "to":                   "dev/dri",
82                                 "devnode":              "/dev/dri/card0",
83                                 "optional":             0,
84                                 "wideallow":    1,
85                                 "exclusive":    0
86                         },
87                         {
88                                 "type":                 "devdir",
89                                 "from":                 "/dev/input",
90                                 "to":                   "dev/input",
91                                 "devnode":              "/dev/input/event0",
92                                 "optional":             1,
93                                 "wideallow":    1,
94                                 "exclusive":    0
95                         }
96                 ],
97                 "dynamic": [
98                         {
99                                 "devpath": "/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/",
100                                 "items": [
101                                         {
102                                                 "subsystem": "usb",
103                                                 "rule": {
104                                                         "devtype": ["usb_device","usb_interface"],
105                                                         "action": ["add", "remove"]
106                                                 },
107                                                 "behavior": {
108                                                         "injection": 1,
109                                                         "devnode": 0,
110                                                         "allow": 0,
111                                                         "permission": "rw"
112                                                 }
113                                         },
114                                         {
115                                                 "subsystem": "block",
116                                                 "rule": {
117                                                         "action": ["add", "remove","change"],
118                                                         "extra" : [
119                                                                 {
120                                                                         "checker": "exclude-fs",
121                                                                         "value": "ext4"
122                                                                 }
123                                                         ]
124                                                 },
125                                                 "behavior": {
126                                                         "injection": 1,
127                                                         "devnode": 0,
128                                                         "allow": 1,
129                                                         "permission": "rwm"
130                                                 }
131                                         }
132                                 ]
133                         },
134                         {
135                                 "devpath": "/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/",
136                                 "items": [
137                                         {
138                                                 "subsystem": "hid",
139                                                 "rule": {
140                                                         "action": ["add", "remove"]
141                                                 },
142                                                 "behavior": {
143                                                         "injection": 1,
144                                                         "devnode": 1,
145                                                         "allow": 1,
146                                                         "permission": "rw"
147                                                 }
148                                         }
149                                 ]
150                         }
151                 ]
152         },
153         "network": {
154                 "static": [
155                         {
156                                 "type":         "veth",
157                                 "param": {
158                                         "name": "veth0",
159                                         "link": "lxcbr0",
160                                         "flags":        "up",
161                                         "hwaddr":       "00:16:3e:xx:xx:xx",
162                                         "mode": "bridge"
163                                 }
164                         }
165                 ]
166         }
167 }