]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
skeleton: fix absence of /dev/shm on static, read-only systems
authorLuca Ceresoli <luca@lucaceresoli.net>
Mon, 21 Sep 2015 16:29:44 +0000 (18:29 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 Oct 2015 13:34:28 +0000 (15:34 +0200)
commitbfd969d29f669722af3a92868731aa4bb4dbf786
tree4499e2dd9b54a8faccfa6d1a52a6a04fa1c84718
parent246131a593ba80879e2a7a81356c0b5fdfccc000
skeleton: fix absence of /dev/shm on static, read-only systems

/dev/shm is needed for systems using shared memory. On init-based systems
this directory is usually created in the inittab along with /dev/pts, by
the lines:

package/busybox/inittab:
  ::sysinit:/bin/mkdir -p /dev/pts
  ::sysinit:/bin/mkdir -p /dev/shm

package/sysvinit/inittab:
  si2::sysinit:/bin/mkdir -p /dev/pts
  si3::sysinit:/bin/mkdir -p /dev/shm

However this is broken when static /dev management is selected and the root
filesystem is read-only, showing during boot the error:

  mkdir: can't create directory '/dev/shm': Read-only file system

Fix it by creating the empty /dev/shm directory, just like /dev/pts.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
system/skeleton/dev/shm/.empty [new file with mode: 0644]