Update systemd-rpm-macros

Try excluding the problematic packages:

sudo dnf ... --exclude=systemd\*

Then remove duplicates if any:

sudo dnf reinstall \
    $(sudo dnf rq \
        --duplicates \
        --latest-limit=1 \
        --qf="%{name}\n" \
        --installroot=/mnt) \
    --allowerasing \
    --releasever=41 \
    --installroot=/mnt

Remove and reinstall the problematic packages:

sudo rpm -e \
    --nodeps \
    --root /mnt \
    systemd-rpm-macros
sudo dnf install systemd-rpm-macros \
    --releasever=41 \
    --installroot=/mnt

If the problem persists, add more flags:

sudo rpm -e \
    --nodeps \
    --noscripts \
    --justdb \
    --root /mnt \
    systemd-rpm-macros

See also:
How do I recover an unbootable Fedora Workstation system? - #8 by vgaetera

2 Likes