Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] system/device_table.txt: add /dev/null entry
@ 2014-11-27  6:44 Baruch Siach
  2014-11-27  7:56 ` Peter Korsgaard
  2014-11-27 19:37 ` Thomas Petazzoni
  0 siblings, 2 replies; 11+ messages in thread
From: Baruch Siach @ 2014-11-27  6:44 UTC (permalink / raw)
  To: buildroot

/dev/null is the "console" for system startup commands listed in the default
/etc/inittab. These commands fail when /dev/null isn't there. This breaks
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV, as /proc and /sys are not mounted when
mdev runs, causing the following errors:

can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
...
Starting mdev...
/etc/init.d/S10mdev: line 19: can't create /proc/sys/kernel/hotplug: nonexistent directory
mdev: /sys/class: No such file or directory

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 system/device_table.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/system/device_table.txt b/system/device_table.txt
index 8e7dbd218a2c..7b92d23b822f 100644
--- a/system/device_table.txt
+++ b/system/device_table.txt
@@ -7,6 +7,7 @@
 #
 # <name>				<type>	<mode>	<uid>	<gid>	<major>	<minor>	<start>	<inc>	<count>
 /dev					d	755	0	0	-	-	-	-	-
+/dev/null				c	666	0	0	1	3	0	0	-
 /tmp					d	1777	0	0	-	-	-	-	-
 /etc					d	755	0	0	-	-	-	-	-
 /root					d	700	0	0	-	-	-	-	-
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-11-27 21:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-27  6:44 [Buildroot] [PATCH] system/device_table.txt: add /dev/null entry Baruch Siach
2014-11-27  7:56 ` Peter Korsgaard
2014-11-27  8:12   ` Baruch Siach
2014-11-27  9:01     ` Peter Korsgaard
2014-11-27 10:15       ` Baruch Siach
2014-11-27 10:24         ` Peter Korsgaard
2014-11-27 10:35           ` Baruch Siach
2014-11-27 10:39             ` Peter Korsgaard
2014-11-27 19:37 ` Thomas Petazzoni
2014-11-27 20:14   ` Baruch Siach
2014-11-27 21:57     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox