Remount persistence devices read-only at shutdown/reboot time (Closes: #6228).
The upstream live-boot initscript (shipped by live-config) doesn't know about our persistent mounts (/live/persistence/*), since they are performed from GDM, and not further moved to the same place as mounts done during initramfs are (/lib/live/mount/persistence/*). Therefore, it can't remount them read-only at shutdown/reboot time. So, let's patch the upstream file at build time for now, to let it know about our mountpoints. A possibly better long-term solution would be to have this change merged upstream, but it's likely not to please them so much. An even better long-term solution would be to have the live-boot code we use in live-persist also move the mounts to the expected place. This could be part of upstreaming live-persist, presumably. On the other hand, all this upstreaming would be only so that our weird usecase is better supported there; it does not look like similar features have been asked by anyone else, so we...
Showing with 13 additions and 0 deletions