In bookworm Raspberry Foundation/Ltd has removed wpa-suppilcant and switched to NetworkManger
In the network module we add a way to headless configure wpa-supplicant.
This is where its done in the network module:
https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/network/start_chroot_script#L36
This is the issue on Rpi:
raspberrypi/bookworm-feedback#72
This is a related issue in FullPageOS:
guysoft/FullPageOS#570
What I think should be done is perhaps have an if statement depending on the distribution version, and use the solution here for bookworm, and perhaps add a symlnink from the old file. Open to other suggestions.
Might take me time to implement because I am busy theses days.