Skip to content

Commit 0e0ac71

Browse files
Add udev as a service:
This allows devices to be updated when there are changes during the runtime of HookOS. Signed-off-by: Jacob Weinstock <[email protected]>
1 parent 84ab9fa commit 0e0ac71

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

linuxkit-templates/hook.template.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,20 @@ services:
7979
- name: ntpd
8080
image: linuxkit/openntpd:v1.0.0
8181

82+
- name: udev # as a service; so system reacts to changes in devices
83+
image: "${HOOK_CONTAINER_UDEV_IMAGE}"
84+
command: [ "/lib/systemd/systemd-udevd", "--debug" ]
85+
capabilities: [ all ]
86+
binds: [ /dev:/dev, /sys:/sys, /lib/modules:/lib/modules ]
87+
rootfsPropagation: shared
88+
net: host
89+
pid: host
90+
devices:
91+
- path: all
92+
type: b
93+
- path: all
94+
type: c
95+
8296
- name: acpi
8397
image: "${HOOK_CONTAINER_ACPID_IMAGE}"
8498
capabilities:

0 commit comments

Comments
 (0)