The image feature read-only-rootfs conflicts with the run-postinsts from meta/recipes-devtools/run-postinst The run-postinsts script is installed to init.d and does basically do two things: 1. executes scripts that are stored in /etc/<packagekind>-postinsts/ 2. removes itself from the runlevels to prevent these scripts to be executed all over again. The 2nd step does not work when using the read-only-rootfs. There might not be a good solution for it. ro-rootfs is per definition not persistent. So closing this ticket as "WONTFIX" or "WORKSFORME" which should be fine. An alternative solution would be to modify run-postinsts script to do something like (pseudocode) --- if [ allow_rootfs_run_postinsts in /etc/default/ro-rootfs ]; then mount -o rw,remount / <run scripts> mount -o ro,remount / fi --- While allow_rootfs_run_postinsts has to be set by an extra IMAGE_FEATURE or as additional, by default disabled, option to the existing read-only-rootfs feature.
Can you please let us know which version of oe-core/bitbake/Poky you are using? There have been various patches for this, if you are 1.5.x based there might be fixes in 1.6, if your in 1.6 then we need to fix it.
I run into in the poky git repository, HEAD of the dora branch.
I still have the same problem in the tar.gz from 1.6. On boot the following accures (please excuse typos): ---- update-rc.d: /etc/init.d/run-postinst exists during rc.d purge (continuing) Removing any system startup links for run-postinsts ... /etc/rcS.d/S99run-postinsts rm: can't remove '/etc/rcS.d/S99run-postinsts': Read-only file system ----
The same problem occurred on master. I think it's necessary to make patches for dora, daisy and master separately. //Chen Qi
I've sent out patches for daisy and master. I've also tested it on dora branch. There's no such problem as the codes in run-postinsts are different. //Chen Qi
Fixed for daisy and master. http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d51b1ced88958d31a1596e37db871257fe013446 http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=6c2f7ecee754ff3f29fdde17c0363f5d138057ff //Chen Qi