logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: d7794f8f1513babc1671a484f13cb339645e56b5
parent 9f92dd2fb1e84bc65df229bcb16133bcb3ff853b
Author: Andrius Štikonas <andrius@stikonas.eu>
Date:   Sat, 27 Feb 2021 12:22:22 +0000

Create device nodes.

Diffstat:

Msysa/run.sh13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/sysa/run.sh b/sysa/run.sh @@ -10,6 +10,17 @@ set -e # shellcheck source=sysa/helpers.sh . helpers.sh +populate_device_nodes() { + # http://www.linuxfromscratch.org/lfs/view/6.1/chapter06/devices.html + test -c /dev/console || mknod -m 622 /dev/console c 5 1 + test -c /dev/null || mknod -m 666 /dev/null c 1 3 + test -c /dev/zero || mknod -m 666 /dev/zero c 1 5 + test -c /dev/ptmx || mknod -m 666 /dev/ptmx c 5 2 + test -c /dev/tty || mknod -m 666 /dev/tty c 5 0 + test -c /dev/random || mknod -m 444 /dev/random c 1 8 + test -c /dev/urandom || mknod -m 444 /dev/urandom c 1 9 +} + export PREFIX=/after build flex-2.5.11 @@ -55,4 +66,6 @@ build perl5.005_03 build perl-5.6.2 +populate_device_nodes + echo "Bootstrapping completed."