[OE-core] [PATCH 05/10] initramfs-framework: support mounting rootfs in modules

Otavio Salvador otavio.salvador at ossystems.com.br
Wed Sep 2 16:19:38 UTC 2015


On Wed, Sep 2, 2015 at 12:48 PM, Patrick Ohly <patrick.ohly at intel.com> wrote:
> The "finish" script always expected to mount the rootfs itself if the
> "root" parameter was set. Now it checks first whether the rootfs
> directory is still empty (using /dev as indicator, because that was
> already expected to be present in a supported rootfs) and skips that
> step if non-empty.
>
> This allows modules to implement their own rootfs handling.
>
> Signed-off-by: Patrick Ohly <patrick.ohly at intel.com>

I think this should not be applied as is. Anything doing the rootfs
mapping should set the proper parameters so we don't have multiple
rootfs mounting code duplicated.

If there is any limitation please share the use case so we can
understand the need for it.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list