不再有引导加载程序:请改用内核
No more boot loader: Please use the kernel instead

原始链接: https://pretalx.com/devconf-cz-2024/talk/W3AVCT/

Red Hat 团队的目标是推出一种新颖的 GRUB 引导加载程序替代品,称为“nmbl”或“不再有引导加载程序”。 该项目的重点是开发一个快速、受保护、以 Linux 为中心的替代方案。 尽管 GRUB 在功能和跨各种架构(如 x86_64、aarch64、ppc64le OpenFirmware)的适应性方面表现出色,但其复杂性使得维护具有挑战性。 Linux 内核以快速更新、高效错误处理和广泛监督而闻名,这给了我们灵感。 我们建议使用 Linux 内核本身作为引导加载程序,而不是依赖 GRUB。 通过将内核、初始 RAM 文件系统和引导参数集成到统一的内核映像中,所有基本组件都变得独立。 我们的演讲将展示迄今为止所取得的进展,并邀请评论和实际应用。 欲了解更多详情,请参阅相关文档。

本文讨论了作者在 UEFI 系统中使用引导加载程序(主要是 Grub)进行双引导和恢复系统的经验。 作者认为引导加载程序之所以重要有几个原因:易于使用、编辑内核命令行的能力、在各种内核和 initrd 映像之间进行选择以及访问 UEFI 设置菜单和其他应用程序(如 Memtest)。 他们对完全消除引导加载程序并让内核负责在早期引导阶段管理系统的可行性表示好奇。 文本表明红帽正在提出这样的解决方案,并强调安全优势,但缺乏细节。 批评者对向后兼容性、复杂性和安全性方面的潜在困难表示担忧。 总体而言,本文探讨了引导加载程序在现代计算(尤其是 UEFI 系统)背景下的作用,并讨论了它们的必要性以及对系统启动和维护的影响。
相关文章

原文

We are working on a new scheme to replace the GRUB bootloader with a fast, secure, Linux-based, user-space solution: nmbl (for no more boot loader).
Most people are familiar with GRUB, a powerful, flexible, fully-featured bootloader that is used on multiple architectures (x86_64, aarch64, ppc64le OpenFirmware). Although GRUB is quite versatile and capable, its features create complexity that is difficult to maintain, and that both duplicate and lag behind the Linux kernel while also creating numerous security holes. On the other hand, the Linux kernel, which has a large developer base, benefits from fast feature development, quick responses to vulnerabilities and greater overall scrutiny.
We (Red Hat boot loader engineering) will present our solution to this problem, which is to use the Linux kernel as its own bootloader. Loaded by the EFI stub on UEFI, and packed into a unified kernel image (UKI), the kernel, initramfs, and kernel command line, contain everything they need to reach the final boot target. All necessary drivers, filesystem support, and networking are already built in and code duplication is avoided.
We will showcase the work done so far, and ask you for your feedback and use cases.

See also:
联系我们 contact @ memedata.com