rauc / meta-rauc-community

Yocto/OpenEmbedded meta layer with examples for integration of RAUC, the embedded Linux A/B update framework
MIT License
46 stars 51 forks source link

rpi: Set /boot to ro? #98

Open warcow105 opened 3 months ago

warcow105 commented 3 months ago

I was wondering if it would be good to remount boot as ro after rauc-mark-good runs? SD corruption in /boot has bitten me a few times so I made a bbappend to modify rauc-mark-good.service to add "ExecStartPost=mount -o remount,ro /boot". I have added matching remount,rw to the updater for update bundles. So far I have not had any corrupted /boot issues since. Would this change be beneficial to anyone else? Am I overlooking something that makes this a bad idea?

Michael