Emerge the baselayout-lite ebuild into the embedded_rootfs . This ebuild will create the base layout of the embedded disk, it will install the init script, and any other files. The configuration files are optimized for embedded systems.
# cd /usr/portage/sys-apps/baselayout-lite/ # ROOT=/embedded_rootfs emerge '=baselayout-lite-1.0_pre1' |
The baselayout-lite ebuild is still in beta version, so some adjustments are necessary. We need to create the /var/log/ directory into /embedded_rootfs/, to edit the /etc/inittab changing the tail command line from /usr/bin/tail to /bin/tail:
# mkdir /embedded_rootfs/var/log # nano -w /embedded_rootfs/etc/inittab |
The line in which perform the replacement is:
tty3::respawn:/bin/tail -f /var/log/messages |