Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(24.04): add udev slice #378

Open
wants to merge 4 commits into
base: ubuntu-24.04
Choose a base branch
from

Conversation

Meulengracht
Copy link
Member

Proposed changes

Proposing udev as its needed for Ubuntu Core. The slices is as well tested as I think make sense currently. Systemd-udevd is difficult to test as it requires a lot more system setup, and interacts with /dev devices.

Checklist

Copy link

github-actions bot commented Oct 22, 2024

Diff of dependencies:

slices/udev.yaml
@@ -7,5 +7,3 @@
 libudev1
 systemd
 systemd-dev
-systemd-standalone-sysusers
-systemd-sysusers

Copy link
Collaborator

@cjdcordeiro cjdcordeiro left a comment

Choose a reason for hiding this comment

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

Just a few nits but it LGTM

Comment on lines +28 to +35
# This provides neccesary functionality to generate the hwdb
# for udev. In the postinst script the following command is run
# /usr/bin/systemd-hwdb --usr update.
# Currently we have the same challenge in terms of emulating what
# systemd-hwdb is doing, as it's writing very carefully constructed
# binary data to binary files. For more info on this we can check
# PR: https://github.com/canonical/chisel-releases/pull/329 where a
# similar challenge is.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# This provides neccesary functionality to generate the hwdb
# for udev. In the postinst script the following command is run
# /usr/bin/systemd-hwdb --usr update.
# Currently we have the same challenge in terms of emulating what
# systemd-hwdb is doing, as it's writing very carefully constructed
# binary data to binary files. For more info on this we can check
# PR: https://github.com/canonical/chisel-releases/pull/329 where a
# similar challenge is.
# This provides the necessary functionality to generate the hwdb
# for udev. In the postinst script the following command is run
# /usr/bin/systemd-hwdb --usr update.
# Currently we have the same challenge in terms of emulating what
# systemd-hwdb is doing, as it's writing very carefully constructed
# binary data to binary files. For more info on this, we can check
# PR: https://github.com/canonical/chisel-releases/pull/329 where a
# similar challenge is.

/usr/lib/udev/rules.d/81-net-dhcp.rules:
/usr/lib/udev/rules.d/90-iocost.rules:

systemd-udevd:
Copy link
Collaborator

Choose a reason for hiding this comment

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

there's more than just udevd in this slice. Is this the right name?

/usr/lib/systemd/system/udev.service:
/usr/lib/systemd/systemd-udevd:

sysusers-config:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this make sense without systemd-sysusers? Which is a dep missing from this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants