Skip to content

Commit 0182cbc

Browse files
Add udev as a service: (#276)
## Description <!--- Please describe what this PR is going to change --> This allows devices to be updated when there are changes during the runtime of HookOS. ## Why is this needed <!--- Link to issue you have raised --> Fixes: # ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## How are existing users impacted? What migration steps/scripts do we need? <!--- Fixes a bug, unblocks installation, removes a component of the stack etc --> <!--- Requires a DB migration script, etc. --> ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
2 parents 84ab9fa + 0e0ac71 commit 0182cbc

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)