diff --git a/NetworkManager.spec b/NetworkManager.spec index 24c9a6b..0a6618d 100644 --- a/NetworkManager.spec +++ b/NetworkManager.spec @@ -856,8 +856,12 @@ fi %post -/usr/bin/udevadm control --reload-rules || : -/usr/bin/udevadm trigger --subsystem-match=net || : +# skip triggering if udevd isn't even accessible, e.g. containers or +# rpm-ostree-based systems +if [ -S /run/udev/control ]; then + /usr/bin/udevadm control --reload-rules || : + /usr/bin/udevadm trigger --subsystem-match=net || : +fi %if %{with firewalld_zone} %firewalld_reload %endif