diff --git a/chapter05/chapter05.xml b/chapter05/chapter05.xml index dbeb3bf40..8a61ef051 100644 --- a/chapter05/chapter05.xml +++ b/chapter05/chapter05.xml @@ -44,7 +44,9 @@ + diff --git a/chapter06/devices.xml b/chapter06/devices.xml index 297e06e06..24a9aa58d 100644 --- a/chapter06/devices.xml +++ b/chapter06/devices.xml @@ -32,10 +32,13 @@ populate /dev ourselves. Begin by mounti mount -n -t ramfs none /dev -Now use the provided udevstart utility to create the initial devices based on -all the information in /sys: +Since we do not have the Udev package installed yet, we'll create a +minimal set of device nodes to use for building: -/tools/sbin/udevstart +mknod -m 600 /dev/console c 5 1 +mknod -m 600 /dev/null c 1 3 +mknod -m 600 /dev/zero c 1 5 +mknod -m 600 /dev/ptmx c 5 2 There are some symlinks and directories required by LFS that are not created by Udev, so we create those ourselves here: diff --git a/chapter06/udev.xml b/chapter06/udev.xml index a436d35b4..6e0456bea 100644 --- a/chapter06/udev.xml +++ b/chapter06/udev.xml @@ -45,6 +45,11 @@ configuration files here: cp ../udev-config-2.permissions /etc/udev/permissions.d/25-lfs.permissions cp ../udev-config-1.rules /etc/udev/rules.d/25-lfs.rules +Finally, we'll allow udev to create the full compliment of device +nodes, since earlier we only created a minimal set. + +/sbin/udevstart +