Downgrading from 5.13 to 5.12 Bricks Machine

there’s some silent error in a kernel module i use suddenly with 5.13, so decided to just downgrade to 5.12 for now while they figure out what’s wrong.

i tried running swupd repair -m 34830 --force but it ended up failing with…

The removal of extraneous files will be skipped due to the previous errors found repairing
Inspected 240436 files
  29873 files were missing
    29873 of 29873 missing files were replaced
    0 of 29873 missing files were not replaced
  6626 files did not match
    6563 of 6626 files were repaired
    63 of 6626 files were not repaired

Calling post-update helper scripts
External command: /usr/bin/systemd-detect-virt: error while loading shared libraries: librt.so.1: cannot open shared object file: No such file or directory
External command: /usr/bin/clr-boot-manager: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
External command: /bin/bash: symbol lookup error: /usr/lib64/haswell/libc.so.6: undefined symbol: _dl_catch_error_ptr, version GLIBC_PRIVATE

Repair did not fully succeed

then libc was now nowhere to be found…

root@clr-cb24ab3592f246fca34233a047c4b0b9~ # swupd -v
swupd: symbol lookup error: /usr/lib64/haswell/libc.so.6: undefined symbol: _dl_catch_error_ptr, version GLIBC_PRIVATE
root@clr-cb24ab3592f246fca34233a047c4b0b9~ # swupd
swupd: symbol lookup error: /usr/lib64/haswell/libc.so.6: undefined symbol: _dl_catch_error_ptr, version GLIBC_PRIVATE
root@clr-cb24ab3592f246fca34233a047c4b0b9~ # reboot
reboot: symbol lookup error: /usr/lib64/haswell/libc.so.6: undefined symbol: _dl_catch_error_ptr, version GLIBC_PRIVATE

and when i tried rebooting and ssh-ing into the machine it was now bricked basically. so i’ll have to do a live usb install.

any advice on the proper way to do this in the future?