From 28be480fbcfe18f008948642493cbba612c8c685 Mon Sep 17 00:00:00 2001 From: yueyuankun Date: Fri, 9 Jun 2023 17:17:17 +0800 Subject: [PATCH] add grub2 password for legacy --- security-tool.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/security-tool.sh b/security-tool.sh index 0877081..5939f44 100644 --- a/security-tool.sh +++ b/security-tool.sh @@ -948,6 +948,8 @@ function fn_harden_grub2() echo -e "cat <> /etc/grub.d/00_header if [ -d /boot/efi/EFI/openEuler -a -d /sys/firmware/efi ]; then grub2-mkconfig -o /boot/efi/EFI/openEuler/grub.cfg + else + grub2-mkconfig -o /boot/grub2/grub.cfg fi } # Function Name: fn_harden_sysctl -- 2.33.0