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

Arnout Vandecappelle arnout at mind.be
Tue Sep 15 12:27:08 UTC 2015



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 ]


 Regards,
 Arnout


-- 
Arnout Vandecappelle      arnout dot vandecappelle at essensium dot com
Senior Embedded Software Architect . . . . . . +32-478-010353 (mobile)
Essensium, Mind division . . . . . . . . . . . . . . http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium . . . . . BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF




More information about the buildroot mailing list