From 9ebb2434a81f348b0a59522b3cfc59373793ef2f Mon Sep 17 00:00:00 2001 From: FangcatChina <2950966704@qq.com> Date: Wed, 5 Aug 2026 19:45:13 +0800 Subject: How to remove GRUB --- docs/concepts/operating_system/boot_loader.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/concepts/operating_system/boot_loader.md b/docs/concepts/operating_system/boot_loader.md index 82e43ec..722bddb 100644 --- a/docs/concepts/operating_system/boot_loader.md +++ b/docs/concepts/operating_system/boot_loader.md @@ -91,7 +91,22 @@ sudo refind install --shim /boot/efi/一般为发行版名称/shimx64.efi 更多选项,建议您参考[Arch Wiki](https://wiki.archlinuxcn.org/wiki/REFInd)。 !!! warning "警告" - 我们不建议您在安装rEFInd之后贸然卸载GRUB。在部分发行版内,GRUB可能受包管理器保护。 + 我们不建议您在安装rEFInd之后贸然卸载GRUB。rEFInd的识别能力有限,若您在安装系统时选择单独分区`/boot`则**可能无法直接通过vmlinuz绕过GRUB启动**。 + + 在部分发行版内,GRUB可能受包管理器保护。 + + ??? note "卸载GRUB" + 此处以Fedora为例。要卸载GRUB,首先需要移除系统对GRUB包的保护。 + + ```bash + sudo rm /etc/dnf/protected.d/{shim,grub2*}.conf + ``` + + 之后,移除GRUB。 + + ```bash + sudo dnf remove grub* shim* + ``` #### 美化 -- cgit v1.3