* read-only rootfs + boot parameters
@ 2017-11-24 12:10 Patrick Ohly
2017-11-27 1:39 ` Khem Raj
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Ohly @ 2017-11-24 12:10 UTC (permalink / raw)
To: OpenEmbedded
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.
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: read-only rootfs + boot parameters
2017-11-24 12:10 read-only rootfs + boot parameters Patrick Ohly
@ 2017-11-27 1:39 ` Khem Raj
0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2017-11-27 1:39 UTC (permalink / raw)
To: Patrick Ohly; +Cc: OpenEmbedded
On Fri, Nov 24, 2017 at 4:10 AM, Patrick Ohly <patrick.ohly@intel.com> wrote:
> 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?
>
seems an oversight to me
> 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.
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-11-27 1:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-24 12:10 read-only rootfs + boot parameters Patrick Ohly
2017-11-27 1:39 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox