[OE-core] read-only rootfs + boot parameters
Patrick Ohly
patrick.ohly at intel.com
Fri Nov 24 12:10:31 UTC 2017
Hello!
I noticed that APPEND is left unchanged when adding "read-only-rootfs"
to IMAGE_FEATURES. The effect is (at least in refkit, which uses an
initramfs based on initramfs-framework) that the rootfs initially gets
mounted read/write and then gets remounted by systemd as read-only -
but only after writing to /etc/machine-id.
Is that the desired behavior or an oversight?
To me, read-only means read-only, with no exceptions. The obvious fix
is:
APPEND_append = "${@ bb.utils.contains('IMAGE_FEATURES', 'read-only-rootfs', ' ro', '', d)} "
I'm just not sure whether that should go into image.bbclass or
elsewhere.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
More information about the Openembedded-core
mailing list