Product SiteDocumentation Site

8.11. Instal·lació d'un nucli

8.11.1. Característiques d'un paquet Debian del nucli

Un paquet Debian del nucli instal·la la imatge del nucli (vmlinuz-versió), la seva configuració (config-versió) i la seva taula de símbols (System.map-versió) a /boot/. Els mòduls queden instal·lats al directori /lib/modules/versió/.
The package's configuration scripts automatically generate an initramfs image (the successor of the old initial ramdisk initrd image), which is a compressed mini-system designed to be loaded in memory (hence the name, which stands for “initial ram filesystem”) by the bootloader, and used by the Linux kernel solely for loading the modules needed to access the devices containing the complete Debian system (for example, the driver for SATA disks). Finally, the post-installation scripts update the symbolic links /vmlinuz, /vmlinuz.old, /initrd.img, and /initrd.img.old so that they point to the latest two kernels installed, respectively, as well as the corresponding initramfs boot images.
La majoria d'aquestes tasques són delegades a «hook scripts» als directoris /etc/kernel/*.d/. Per exemple, la integració amb grub es basa en /etc/kernel/postinst.d/zz-update-grub i /etc/kernel/postrm.d/zz-update-grub per a cridar update-grub quan s'instal·len o s'eliminen nuclis.

8.11.2. Instal·lació amb dpkg

Using apt is so convenient that it makes it easy to forget about the lower-level tools, but the easiest way of installing a compiled kernel is to use a command such as dpkg -i package.deb, where package.deb is the name of a linux-image package such as linux-image-5.10.46-falcot_5.10.46-1_amd64.deb.
Les passes de configuració descrites en aquest capítol són bàsiques i poden servir tant a un sistema de servidor com a una estació de treball, i pot ser massivament duplicat de forma semiautomatitzada. No obstant això, no n'hi ha prou per si mateix amb proporcionar un sistema plenament configurat. Algunes peces encara necessitaran configuració, començant amb programes de baix nivell coneguts com a "Serveis Unix".