clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since f0d334a was bf3dcb3f, checked in by Jim Gifford <clfs@…>, 19 years ago |
r1112@server (orig r1110): chris | 2006-01-30 11:07:11 -0800
Moved note in boot section about running the rest of the book as root to populating LFS/dev since the devices must be created as root.
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-boot-devices">
|
---|
9 | <?dbhtml filename="devices.html"?>
|
---|
10 |
|
---|
11 | <title>Populating ${LFS}/dev</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-boot-devices">
|
---|
14 | <primary sortas="e-${LFS}/dev/*">${LFS}/dev/*</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2>
|
---|
18 | <title>Creating Initial Device Nodes</title>
|
---|
19 |
|
---|
20 | <note os="a">
|
---|
21 | <para>The commands in the remainder of the book should be run as
|
---|
22 | the<systemitem class="username">root</systemitem> user. Also,
|
---|
23 | double-check that $LFS is set as root.</para>
|
---|
24 | </note>
|
---|
25 |
|
---|
26 | <para os="b">When the kernel boots the system, it requires the presence
|
---|
27 | of a few device nodes, in particular the <filename
|
---|
28 | class="devicefile">console</filename> and <filename
|
---|
29 | class="devicefile">null</filename> devices. The device nodes will
|
---|
30 | be created on the hard disk so that they are available before
|
---|
31 | <command>udev</command> has been started, and additionally when Linux
|
---|
32 | is started in single user mode (hence the restrictive permissions on
|
---|
33 | <filename class="devicefile">console</filename>). Create these by running
|
---|
34 | the following commands:</para>
|
---|
35 |
|
---|
36 | <screen><userinput>mknod -m 600 ${LFS}/dev/console c 5 1
|
---|
37 | mknod -m 666 ${LFS}/dev/null c 1 3</userinput></screen>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 | </sect1>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.