teknoraver / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone

c6f7df Add additional daemon-reexec for upgrades from old systemd versions

Authored and Committed by Zbigniew Jędrzejewski-Szmek 6 months ago
1 file changed. 4 lines added. 0 lines removed.
    Add additional daemon-reexec for upgrades from old systemd versions
    
    https://github.com/systemd/systemd/issues/32508#issuecomment-2079991745
    
    > The new systemd package does the reexec in %postun, but the old one does it in
    > %post. So if we install the new one, we don't do any reexec (since %postun
    > doesn't run in this case), but once we remove the old one we also don't do any
    > reexec, because in this case there's no reexec in %postun:
    
    > # dnf upgrade --rpmverbosity=debug ./*.rpm |& tee log.txt
    > ...
    > : %postun(systemd-255.5-1.fc41.x86_64): scriptlet start
    > D: %postun(systemd-255.5-1.fc41.x86_64): execv(/bin/sh) pid 2649
    > D: Plugin: calling hook scriptlet_fork_post in selinux plugin
    > D: setexecfilecon: (/bin/sh, rpm_script_t)
    > + '[' 1 -eq 1 ']'
    > + '[' -w /var ']'
    > + journalctl --update-catalog
    > + systemd-tmpfiles --create
    
        
file modified
+4 -0