[Buildroot] [RFC 3/6] system: add mdev-only /dev management (without devtmpfs)

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Sep 15 13:03:03 UTC 2015


Dear Arnout Vandecappelle,

On Tue, 15 Sep 2015 14:27:08 +0200, Arnout Vandecappelle wrote:
> 
> 
> On 15-09-15 14:01, Peter Korsgaard wrote:
> > Or alternatively, extend the S10mdev logic to detect that it need to
> > create a tmpfs on /dev (by looking for devtmpfs in /proc/filesystems or
> > detecting that /dev is RO) and have all the fixup there. That way it
> > atleast doesn't add any more complications to the rest of Buildroot /
> > users.
> 
>  That's a great idea, because it actually simplifies the buildroot code (no
> longer needed to force devtmpfs in the kernel when mdev is selected).
> 
>  To detect, it's as simple as:
> 
> if [ "$(cut -d ' ' -f 2,3 /proc/mounts | sed -n '/^\/dev /s///p')" != devtmpfs ]

But then, who creates /dev/console when devtmpfs is not available? We
have it unconditionally?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list