MTD 248-645A Manual de usuario Pagina 98

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 347
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 97
Linux From Scratch - Version 7.0
78
6.2.1. Creating Initial Device Nodes
When the kernel boots the system, it requires the presence of a few device nodes, in particular the console and
null devices. The device nodes must be created on the hard disk so that they are available before udevd has been
started, and additionally when Linux is started with init=/bin/bash. Create the devices by running the following
commands:
mknod -m 600 $LFS/dev/console c 5 1
mknod -m 666 $LFS/dev/null c 1 3
6.2.2. Mounting and Populating /dev
The recommended method of populating the /dev directory with devices is to mount a virtual filesystem (such as
tmpfs) on the /dev directory, and allow the devices to be created dynamically on that virtual filesystem as they
are detected or accessed. Device creation is generally done during the boot process by Udev. Since this new system
does not yet have Udev and has not yet been booted, it is necessary to mount and populate /dev manually. This is
accomplished by bind mounting the host system's /dev directory. A bind mount is a special type of mount that allows
you to create a mirror of a directory or mount point to some other location. Use the following command to achieve this:
mount -v --bind /dev $LFS/dev
6.2.3. Mounting Virtual Kernel File Systems
Now mount the remaining virtual kernel filesystems:
mount -vt devpts devpts $LFS/dev/pts
mount -vt tmpfs shm $LFS/dev/shm
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
6.3. Package Management
Package Management is an often requested addition to the LFS Book. A Package Manager allows tracking the
installation of files making it easy to remove and upgrade packages. As well as the binary and library files, a package
manager will handle the installation of configuration files. Before you begin to wonder, NO—this section will not talk
about nor recommend any particular package manager. What it provides is a roundup of the more popular techniques
and how they work. The perfect package manager for you may be among these techniques or may be a combination
of two or more of these techniques. This section briefly mentions issues that may arise when upgrading packages.
Some reasons why no package manager is mentioned in LFS or BLFS include:
Dealing with package management takes the focus away from the goals of these books—teaching how a Linux
system is built.
There are multiple solutions for package management, each having its strengths and drawbacks. Including one
that satisfies all audiences is difficult.
There are some hints written on the topic of package management. Visit the Hints Project and see if one of them
fits your need.
Vista de pagina 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 346 347

Comentarios a estos manuales

Sin comentarios