[OE-core] Always install initramfs-framework-base in case of linux-yocto & INITRAMFS_IMAGE_BUNDLE=1

Alexey Brodkin alexey.brodkin at synopsys.com
Wed Feb 6 15:53:44 UTC 2019


Hi Leon,

> -----Original Message-----
> From: Leon Woestenberg <leon at sidebranch.com>
> Sent: Friday, February 1, 2019 12:18 AM
> To: Alexey Brodkin <alexey.brodkin at synopsys.com>
> Cc: Patches and discussions about the oe-core layer <openembedded-core at lists.openembedded.org>
> Subject: Re: [OE-core] Always install initramfs-framework-base in case of linux-yocto &
> INITRAMFS_IMAGE_BUNDLE=1
> 
> On Tue, Jan 29, 2019 at 9:01 PM Alexey Brodkin
> <alexey.brodkin at synopsys.com> wrote:
> > --------------------------->8----------------------
> > /dev/console is missing or not a character device!
> > Please ensure your rootfs is properly configured
> > --------------------------->8----------------------
> 
> I thought /dev/console could also be created by the kernel itself onto
> a "temporary filesystem for device nodes" (DEVTMPFS).
> I am not sure, but here is a similar case:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.busybox.net_pipermail_buildroot_2015-
> 2DMarch_123309.html&d=DwIBaQ&c=DPL6_X_6JkXFx7AXWqB0tg&r=lqdeeSSEes0GFDDl656eViXO7breS55ytWkhpk5R81I&m=
> 9xab_6OSIxhk6sCiqSFEwTUASBIaA_-C_wGiSMfJn3o&s=SJ9X7QVWrd1gCdyBsL9fdY841I4qG2y47VH3Sw-IRF4&e=
> 
> Is your (other) kernel configured with CONFIG_DEVTMPFS=y?

Indeed it is.

The problem is devtmpfs is auto-mounted in prepare_namespace() which
is not executed in case of initramfs because in case of initramfs we
expect its "/init" will do everything itself, see [1].

That said enabling CONFIG_DEVTMPFS_MOUNT doesn't help with initramfs too.
So I don't see any other solution except disabling this check in case
of enabled CONFIG_BLK_DEV_INITRD, see [2].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/early-userspace/README#n140
[2] https://lists.yoctoproject.org/pipermail/linux-yocto/2019-February/007552.html

-Alexey




More information about the Openembedded-core mailing list