Hiya! So I was having a problem with the Pi's official display not working with a pi4 with LibreELEC. When you boot the system, the screen flashes to the splash screen for a second then goes blank and does not work. I have connected the pi up to a hdmi display and it was working flawlessly. After a lot of digging around I found some old threads like this one with the same problem and its been around for a few years.
I have found a fix but it can be temporary as it involves editing the distroconfig.txt file on the boot partition.
The line dtoverlay=vc4-kms-v3d,cma-512 has to be changed to dtoverlay=vc4-fkms-v3d,cma-512
for the rpi's official display to work correctly but as mentioned at the top of the file to not change it as it will be overwritten with updates. So my question is, how can I make a change to the distroconfig file that WILL stick with updates?