Permissions Reset For Whole System

I am having an extremely weird issue where after running systemctl reboot, my whole system takes a long time to reboot then boots up filling the screen with these errors:


What seems to be happening (from booting into a Debian 12 installer rescue shell) is that the execute bit gets removed from almost every file. Every file in /usr/bin and /usr/sbin have their permissions set to 664 so I can’t execute any commands, or even access single user mode.

This is a FreePBX 17, Debian Bookworm installation, it’s not even an active system yet.

When I run fwconsole chown it doesn’t seem to reset any of the permissions, yet when I systemctl disable freepbx before booting up, I am able to reboot without my permissions being destroyed.

Side note, fwconsole chown -vvv doesn’t give any extra verbose information, so I have no idea what it is trying to do, yet if I am watching htop while I run the command, it seems to only be touching /var/spool/asterisk (like I want it to).