From f4acb1428e1c44cb6ae9da0226bbce5eebf5df07 Mon Sep 17 00:00:00 2001 From: Sr <39112652+Itswag@users.noreply.github.com> Date: Tue, 30 May 2023 22:54:04 +0800 Subject: [PATCH 1/2] Update README.md about grub2-mkconfig. Added Grub2-mkconfig UEFI mode description, using Centos7.9 as an example. --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 51084f9f..a7068700 100644 --- a/README.md +++ b/README.md @@ -48,10 +48,17 @@ GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet intel_iommu=on modprobe.blacklist=nouveau" GRUB_DISABLE_RECOVERY="true" ``` -```shell +###### Legacy Mode +```shell grub2-mkconfig -o /boot/grub2/grub.cfg reboot ``` +###### UEFI Mode +```shell +grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg # Centos 7.9 +reboot +``` + After rebooting, verify IOMMU is enabled using following command ```shell dmesg | grep -E "DMAR|IOMMU" From d5f5f232015f0fd96e29377144bbb783cde6f0e4 Mon Sep 17 00:00:00 2001 From: Sr <39112652+Itswag@users.noreply.github.com> Date: Tue, 30 May 2023 23:24:52 +0800 Subject: [PATCH 2/2] Update README.md Update description --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a7068700..1629830f 100644 --- a/README.md +++ b/README.md @@ -48,14 +48,14 @@ GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet intel_iommu=on modprobe.blacklist=nouveau" GRUB_DISABLE_RECOVERY="true" ``` -###### Legacy Mode +###### Legacy Mode (BIOS) ```shell grub2-mkconfig -o /boot/grub2/grub.cfg reboot ``` ###### UEFI Mode ```shell -grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg # Centos 7.9 +grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg reboot ```