It seems 24H2 has some issues with the /generalize stage of sysprep breaking the BCD. Check out this thread: https://learn.microsoft.com/en-us/answers/questions/1843393/windows-11-24h2-26100-1150-sysprep-generalize-brea
In My case this fixed the BCD. After I Sysprep a computer, I've added these 3 lines to a script that runs on the newly imaged computers first boot:
- bcdedit -set {current} osdevice partition=C:
- bcdedit -set {current} device partition=C:
- bcdedit -set {memdiag} device partition=\Device\HarddiskVolume2
The Hard disk volume (\Device\HarddiskVolume2) maybe different on your setup.