我是 Fedora 用户,最近(从 Fedora 33)我注意到GRUB 切换到引导加载程序规范 (BLS)当涉及到管理启动项时。
我的问题:它是 Fedora 定制还是 GNU GRUB 的常规功能?
答案1
GNU GRUB 本身不支持 BLS:
# git clone https://git.savannah.gnu.org/git/grub.git
# cd grub/
# find . -type f -print0 | xargs -0 fgrep -ai "boot loader spec"
Exit 123
# find . -type f -print0 | xargs -0 fgrep -ai "bootloaderspec"
Exit 123
# find . -type f -print0 | xargs -0 fgrep -ail "bls"
./themes/starfield/starfield.png
./tests/gettext_strings_test.in
./grub-core/lib/libgcrypt/mpi/m68k/syntax.h
./grub-core/lib/libgcrypt/mpi/m68k/mpih-rshift.S
./grub-core/lib/libgcrypt/mpi/m68k/mpih-lshift.S
./grub-core/kern/arm/startup.S
./grub-core/commands/i386/coreboot/cbls.c
./grub-core/Makefile.core.def
./Makefile.am
./ChangeLog-2015
./.git/index
./.git/objects/pack/pack-d7b2418ef08f0a88570f360b4f27dfb38f96f4a0.pack
然而,已经有叉子来实现该功能
https://github.com/endlessm/grub/blob/master/grub-core/commands/blscfg.c
答案2
除了@Ned64答案之外,您还可以简单地检查源文件https://src.fedoraproject.org/rpms/grub2/tree/rawhide并看到 Fedora 确实对 GRUB 进行了广泛的修补以提供此功能。