[Buildroot] [git commit master] target/generic: inittab: fix devpts mounts when devtmpfs is used

Peter Korsgaard jacmet at sunsite.dk
Mon May 3 10:01:19 UTC 2010

commit: http://git.buildroot.net/buildroot/commit/?id=d39641ccd64b82494716e4bf35ac5d0c8fa67201
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

If devtmpfs (the kernel-maintained /dev filesystem) is used, no
/dev/pts directory is created, causing the devpts mount to fail, which
in term causes stuff like dropbear to fail.

Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
 target/generic/target_skeleton/etc/inittab |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/target/generic/target_skeleton/etc/inittab b/target/generic/target_skeleton/etc/inittab
index 7aa654f..2949c91 100644
--- a/target/generic/target_skeleton/etc/inittab
+++ b/target/generic/target_skeleton/etc/inittab
@@ -16,6 +16,7 @@
 # Startup the system
 null::sysinit:/bin/mount -o remount,rw /
 null::sysinit:/bin/mount -t proc proc /proc
+null::sysinit:/bin/mkdir -p /dev/pts
 null::sysinit:/bin/mount -a
 null::sysinit:/bin/hostname -F /etc/hostname
 null::sysinit:/sbin/ifconfig lo up

More information about the buildroot mailing list