Bug 6144

Summary: read-only-rootfs in IMAGES_FEATURES doesn't work for systemd
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jonathan Liu <net147>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: akuster, bluelightning, kergoth, meta.mr.watcher, meta.watcher, richard.purdie, ross.burton, sgw
Version: 1.6   
Target Milestone: 1.7.2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jonathan Liu 2014-04-10 08:20:38 UTC
Having read-only-rootfs in IMAGE_FEATURES is only working for sysvinit.
If using systemd, the root filesystem is still mounted read/write in /etc/fstab.
Comment 1 Jonathan Liu 2014-04-14 02:35:52 UTC
There has been some interesting work done for readonly rootfs with systemd:
https://github.com/MentorEmbedded/meta-ro-rootfs
Comment 2 Saul Wold 2014-10-30 15:23:32 UTC
There are still some patches possibly pending on the list or other outstanding issues, not yet patched, can either the assignee or reporter better enumerate what's missing.
Comment 3 Chen Qi 2014-10-31 03:18:31 UTC
[OE-core] [PATCH 1/1] image.bbclass: avoid boot error on read-only systemd image

Once this patch is merged, we can close this bug.

//Chen Qi
Comment 4 Paul Eggleton 2015-01-15 15:55:02 UTC
The patch above has been merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b4499ec0361d5c79efb40b6172c33d5602721182

Richard will look at taking this into dizzy.