[Buildroot] devtmpfs and initramfs

Peter Korsgaard jacmet at uclibc.org
Wed Jul 20 08:15:17 UTC 2011


>>>>> "Arnout" == Arnout Vandecappelle <arnout at mind.be> writes:

Hi,

 Arnout> Does anyone know a more elegant solution?
 >> 
 >> Not really - Besides adding a devtmps_mount() call in kernel_init(), but
 >> that's kind of icky as well.

 Arnout>  We could of course use the same trick as for GENERIC_SERIAL...

We could, or adjust initramfs.mk to add a small shellscript as /init
rather than just a symlink:

#!/bin/sh
# devtmpfs does not get automounted for initramfs'es
/bin/mount -t devtmpfs devtmpfs /dev
exec /sbin/init $*

Unless BR2_ROOTFS_DEVICE_CREATION_STATIC is enabled.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list