sudo -i not working with pam-u2f after upgrading Ubuntu from 20.04 to 22.04

Authentication for sudo -i has been separated from non -i use (which is controlled by /etc/pam.d/sudo) into a separate configuration file, /etc/pam.d/sudo-i. So any changes you’ve made for U2F/FIDO2 need to be applied to that file too.