kumquat-buildroot/system/skeleton
Peter Korsgaard 2b21ba2fac skeleton: add /dev/fd, /dev/std{in, out, err} symlinks for static /dev on readonly rootfs
Some applications, e.g. bashs process subsitution feature, rely on the
convention of `/dev/fd` being a symbolic link to `/proc/self/fd`.

When a static /dev is used on a readonly rootfs then the runtime ln
invocations in the inittab will fail, so we need to add the symlinks at
build time.  Makedevs doesn't support creating symlinks, so instead add the
symlinks to the default skeleton.

For non-static /dev setups, the kernel will mount devtmpfs which shadows the
/dev of the rootfs, but then the runtime ln invocations in inittab will
create the symlinks.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-05-01 21:53:45 +02:00
..
dev skeleton: add /dev/fd, /dev/std{in, out, err} symlinks for static /dev on readonly rootfs 2018-05-01 21:53:45 +02:00
etc system: separate sysv and systemd parts of the skeleton 2017-08-02 20:04:29 +02:00
media New top-level directory: system 2012-11-04 12:51:08 +01:00
mnt New top-level directory: system 2012-11-04 12:51:08 +01:00
opt New top-level directory: system 2012-11-04 12:51:08 +01:00
proc New top-level directory: system 2012-11-04 12:51:08 +01:00
root skeleton: Remove bash specific files 2015-10-04 15:53:01 +01:00
run skeleton: make /run a proper directory/filesystem 2015-02-03 15:58:03 +01:00
sys New top-level directory: system 2012-11-04 12:51:08 +01:00
tmp New top-level directory: system 2012-11-04 12:51:08 +01:00
usr New top-level directory: system 2012-11-04 12:51:08 +01:00