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

redhat/spec: Don't trigger udev if socket doesn't exist #940

Closed
wants to merge 1 commit into from

Conversation

jlebon
Copy link

@jlebon jlebon commented Jan 27, 2021

On rpm-ostree systems, we don't want scriptlets to affect the running
system because a major part of the value is "background updates".
Scriptlets are run in a containerized environment where e.g. udev is not
available.

Add a check for the udev socket before triggering it to handle this.
This also helps the container use case.

This doesn't break rpm-ostree strictly, because it uses || true, but
it still spams error messages during the compose. I kept the || true
to be safe, but it's likely fine to remove them now.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=1352154
See also: https://src.fedoraproject.org/rpms/udisks2/pull-request/3
See also: coreos/fedora-coreos-tracker#703

@jlebon jlebon changed the title Don't trigger udev if socket doesn't exist redhat/spec: Don't trigger udev if socket doesn't exist Jan 27, 2021
@jlebon
Copy link
Author

jlebon commented Jan 27, 2021

On rpm-ostree systems, we don't want scriptlets to affect the running
system because a major part of the value is "background updates".
Scriptlets are run in a containerized environment where e.g. udev is not
available.

Add a check for the udev socket before triggering it to handle this.
This also helps the container use case.

This doesn't break rpm-ostree strictly, because it uses `|| true`, but
it still spams error messages during the compose. I kept the `|| true`
to be safe, but it's likely fine to remove them now.

See also: https://bugzilla.redhat.com/show_bug.cgi?id=1352154
See also: https://src.fedoraproject.org/rpms/udisks2/pull-request/3
See also: coreos/fedora-coreos-tracker#703

Signed-off-by: Jonathan Lebon <jonathan@jlebon.com>
@jgunthorpe
Copy link
Member

Shouldn't this be handled inside udevadm? Why change every package? Will this go become unnecessary with Honggang's change to dependencies so rdma-core is not pulled into container images in general?

@Honggang-LI
Copy link
Contributor

Will this go become unnecessary with Honggang's change to dependencies so rdma-core is not pulled into container images in general?

@jlebon
Please try latest fedora rawhide rdma-core build. Base package dependency had been removed from sub-packages.

@jlebon
Copy link
Author

jlebon commented Jan 28, 2021

Please try latest fedora rawhide rdma-core build. Base package dependency had been removed from sub-packages.

Yes, it looks like we're no longer pulling in rdma-core at all anymore. Thanks!

@jlebon jlebon closed this Jan 28, 2021
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.

3 participants