mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Experimental - don't build udev in chapter 5, instead create a minimal device enviornment at the beginning of chapter 6, and run udevstart after udev is installed in chapter 6.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4295 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
b457a1d5d0
commit
6135b95e08
@ -44,7 +44,9 @@
|
||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="flex.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="util-linux.xml"/>
|
||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="perl.xml"/>
|
||||
<!--
|
||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="udev.xml"/>
|
||||
-->
|
||||
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="stripping.xml"/>
|
||||
|
||||
</chapter>
|
||||
|
@ -32,10 +32,13 @@ populate <filename class="directory">/dev</filename> ourselves. Begin by mounti
|
||||
|
||||
<screen><userinput>mount -n -t ramfs none /dev</userinput></screen>
|
||||
|
||||
<para>Now use the provided udevstart utility to create the initial devices based on
|
||||
all the information in <filename class="directory">/sys</filename>:</para>
|
||||
<para>Since we do not have the Udev package installed yet, we'll create a
|
||||
minimal set of device nodes to use for building:</para>
|
||||
|
||||
<screen><userinput>/tools/sbin/udevstart</userinput></screen>
|
||||
<screen><userinput>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</userinput></screen>
|
||||
|
||||
<para>There are some symlinks and directories required by LFS that are not created by
|
||||
Udev, so we create those ourselves here:</para>
|
||||
|
@ -45,6 +45,11 @@ configuration files here:</para>
|
||||
<screen><userinput>cp ../udev-config-2.permissions /etc/udev/permissions.d/25-lfs.permissions
|
||||
cp ../udev-config-1.rules /etc/udev/rules.d/25-lfs.rules</userinput></screen>
|
||||
|
||||
<para>Finally, we'll allow udev to create the full compliment of device
|
||||
nodes, since earlier we only created a minimal set.</para>
|
||||
|
||||
<screen><userinput>/sbin/udevstart</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user