f651544 Don't trigger udev if socket is not accessible

Authored and Committed by jlebon 4 years ago
1 file changed. 10 lines added. 3 lines removed.
    Don't trigger udev if socket is not accessible
    
    In container environments or rpm-ostree systems, scriptlets are not
    directly run on a host system. Thus, there's no point in asking udev to
    reload and retrigger: the host udev wouldn't see the new rules anyway.
    
    Let's just generalize this by checking if the udev socket even exists.
    If not, then we can't talk to `udevd` and we should just skip the reload
    & trigger bits.
    
    Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1753786
    
        
file modified
+10 -3