FWIW I just found out that Fedora already does this. See https://bugzilla.redhat.com/show_bug.cgi?id=1850617