Packages in our system may need to write to some directories to function correctly. In read-only rootfs, these directories should be made writable. We should figure out a convenient and uniform way to handle such situations. Some related bugs: bug#4887 : openssh not working well with read-only rootfs bug#4886 : /etc/rc5.d/S20irattach: /etc/sysconfig/irda: Read-only file system bug#4885 : lighttpd: /www directory should be writable in read-only rootfs //Chen Qi
The only directory that is needed bind mount with tmpfs is /var/lib. Other packages should be patched separately. //Chen Qi
Considering the overhead brought in by checking the /proc/mounts or /etc/fstab in each boot script, the READ_ONLY_ROOTFS value in /etc/default/rcS is still useful. However, we should at least add a check for conflicting configurations between /etc/fstab and /etc/default/rcS.
The only directory that is *necessary* to be bind mounted with tmpfs is /var/lib. Other packages should fix themselves to fit for read-only rootfs. So I changed the title of this bug to "Take into consideration that possibility of /var/lib on a separate writable media in case of a read-only rootfs". //Chen Qi
merged into poky/master: 1dff47b097615771bc144f14c31ea137aa562c70 http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=86ac10995fd08226f82d87e23fda5d4898c3190f