Handbook:Parts/Installation/Kernel/Dist-Kernel/zh-cn

可选: 使用 distribution kernels
Distribution Kernels are ebuilds that cover the complete process of unpacking, configuring, compiling, and installing the kernel. The primary advantage of this method is that the kernels are upgraded to new versions as part of @world upgrade without a need for manual action. Distribution kernels default to a configuration supporting the majority of hardware but they can be customized via.

有一些其它的方法可以定制内核配置例如配置片段.

安装正确的 installkernel
Before using the distribution kernels, please verify that the correct installkernel package for the system is installed. When using systemd-boot (formerly gummiboot), install:

当使用传统的 页面（例如 GRUB、LILO 等. ）， gentoo 变量应该默认安装. 如果有疑问：

安装一个 distribution kernel
如果用 Gentoo 补丁从源码构建一个内核 ，输入：

想要避免编译本地内核源代码的系统管理员可以使用预编译的内核镜像：

更新和清理
Once the kernel is installed, the package manager will automatically upgrade it to newer versions. The previous versions will be kept until the package manager is requested to clean up stale packages. Please remember to periodically run:

为了节省空间. 可以选择清理旧的内核版本

安装后／更新任务
Distribution kernels are now capable of rebuilding kernel modules installed by other packages. provides  which controls a subslot dependency on.

启用像 和  这样的软件包，将允许它们在合适的情况下，自动根据新的内核进行重新编译，并相应地重新生成 initramfs！

手动重建 initramfs
如果需要, 可以手动重建, 内核更新后，执行：

如果其中任何一个模块（例如 ZFS）需要提前启动， 要在之后重建 initramfs：