All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrea Adami <andrea.adami@gmail.com>
To: Alexey Brodkin <alexey.brodkin@synopsys.com>
Cc: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: Always install initramfs-framework-base in case of linux-yocto & INITRAMFS_IMAGE_BUNDLE=1
Date: Thu, 7 Feb 2019 15:25:33 +0100	[thread overview]
Message-ID: <CAAQYJAsCYPP88dCGY_=4mKE9rPGuw6za01tw-CB7D7VCZ7xYeg@mail.gmail.com> (raw)
In-Reply-To: <4881796E12491D4BB15146FE0209CE64681D54A2@DE02WEMBXB.internal.synopsys.com>

On Wed, Feb 6, 2019 at 4:54 PM Alexey Brodkin
<alexey.brodkin@synopsys.com> wrote:
>
> Hi Leon,
>
> > -----Original Message-----
> > From: Leon Woestenberg <leon@sidebranch.com>
> > Sent: Friday, February 1, 2019 12:18 AM
> > To: Alexey Brodkin <alexey.brodkin@synopsys.com>
> > Cc: Patches and discussions about the oe-core layer <openembedded-core@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@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].

Hi,
I jump in because I was at the same point years ago [1]: the issue
here is basically the linux-yocto specific patch adding the check for
console.
It was simply reverted in our case...

Cheers
Andrea

[1]
http://cgit.openembedded.org/meta-openembedded/commit/meta-initramfs/recipes-kernel?id=7183bacd5c866d433467a750e485e6c01af4aafc


>
> 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
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


  reply	other threads:[~2019-02-07 14:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-29 20:00 Always install initramfs-framework-base in case of linux-yocto & INITRAMFS_IMAGE_BUNDLE=1 Alexey Brodkin
2019-01-31 21:17 ` Leon Woestenberg
2019-02-06 15:53   ` Alexey Brodkin
2019-02-07 14:25     ` Andrea Adami [this message]
2019-02-08  6:41       ` Alexey Brodkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAQYJAsCYPP88dCGY_=4mKE9rPGuw6za01tw-CB7D7VCZ7xYeg@mail.gmail.com' \
    --to=andrea.adami@gmail.com \
    --cc=alexey.brodkin@synopsys.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.