image: ensure that /dev/console exist in rootfs images

Linux expects that the /dev/console node is present in
the rootfs image. Create the node in rootfs images, in
order to make std{in,out,err} usable even in early init
process.

Note: tar.gz and cpio.gz images are not handled yet.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37847
This commit is contained in:
Gabor Juhos
2013-08-27 12:02:58 +00:00
parent 012f214e6f
commit fd0325324f
2 changed files with 13 additions and 3 deletions

5
include/device_table.txt Normal file
View File

@@ -0,0 +1,5 @@
# minimal device table file for OpenWrt
#<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
/dev d 755 0 0 - - - - -
/dev/console c 600 0 0 5 1 0 0 -