LukeShortCloud / rootpages

Root Pages is a collection of easy-to-reference tutorials and guides primarily for Linux and other UNIX-like systems.
Other
55 stars 6 forks source link

[programming][packaging] Handle udevadm commands in RPM specs on rpm-ostree distros and containers #1061

Open LukeShortCloud opened 7 months ago

LukeShortCloud commented 7 months ago

See if the udevd socket is available.

# skip retriggering if udevd isn't even accessible, e.g. containers or
# rpm-ostree-based systems
if [ -S /run/udev/control ]; then
    udevadm control --reload
    udevadm trigger
fi

https://src.fedoraproject.org/rpms/udisks2/pull-request/3#request_diff https://github.com/fedora-silverblue/issue-tracker/issues/16