Yet in-between kernel v. 5.18 and 6.x many things have changed - especially on EndeavourOS (less so on Arch Linux).
EnOS has switched to systemd-boot (instead of grub), and to dracut (instead of mkinitcpio). Therefore it seems not very “solvable” to me. Sorry to say.