teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

89aa08 Make scriptlets non-failing and skip udevadm reload if no udev

Authored and Committed by Zbigniew Jędrzejewski-Szmek 5 years ago
    Make scriptlets non-failing and skip udevadm reload if no udev
    
    sysctl, binfmt, and other rules are collected from multiple packages
    and we don't want to see a report that systemd %triggerin failed.
    So let's not silence the output, but use "|| :" to the trigger is
    not reported as failed.
    
    Also, adjust the udevadm check. In containers udevd might not be
    running, even if systemd is, and we'd get:
    Failed to send reload request: No such file or directory
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1698391
    
        
file modified
+7 -7