Skip to content

Conversation

@jacobweinstock
Copy link
Member

@jacobweinstock jacobweinstock commented Feb 15, 2024

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:

  • updated the documentation and/or roadmap (if required)
  • added unit or e2e tests
  • provided instructions on how to upgrade

This allows mdev to properly set
the permissions for devices in /dev.
This fix was driven by the incorrect permissions
for /dev/null.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
The alpine pkg mdev-conf provides
what we need better than the custom
mdev.conf previously added.

Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
Copy link
Member

@chrisdoherty4 chrisdoherty4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Signal to Mergify to merge the PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make deterministic device paths available Wrong /dev/null permission making ubuntu jammy deployment impossible

2 participants