Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
redhat/spec: Don't trigger udev if socket doesn't exist
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>
- Loading branch information