Create device nodes.

This commit is contained in:
Andrius Štikonas 2021-02-27 12:22:22 +00:00
parent 9f92dd2fb1
commit d7794f8f15
1 changed files with 13 additions and 0 deletions

View File

@ -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."