tinkerbell / hook

In-memory Operating System Installation Environment for Executing Tinkerbell Workflows
Apache License 2.0
101 stars 48 forks source link

Add mdev as a service: #200

Closed jacobweinstock closed 6 months ago

jacobweinstock commented 6 months ago

Description

Linuxkit seems to not set the proper permissions for files/devices in /dev. Adding mdev enables proper setting of the permissions for files/devices in /dev. This fix was driven by the incorrect permissions for /dev/null that cause some actions using ubuntu/debian images to failed to run the apt update command.

This also adds deterministic device naming via /dev/device/by-*.

Why is this needed

Fixes: #142 Fixes: #152

How Has This Been Tested?

Manually tested.

How are existing users impacted? What migration steps/scripts do we need?

Checklist:

I have: