From 9cd68dcfed630df4ed64f5afd017bb9c9995b14c Mon Sep 17 00:00:00 2001 From: compile_success <980965867@qq.com> Date: Sun, 21 Mar 2021 17:51:50 +0800 Subject: [PATCH] fix postun error --- grub.macros | 6 +++--- grub2.spec | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/grub.macros b/grub.macros index f7c6eba..ac2efa3 100644 --- a/grub.macros +++ b/grub.macros @@ -293,10 +293,10 @@ if [ "xvfat" != "x$res" -a "xfat" != "x$res" ]; then \ fi \ \ %postun %{1} \ -if [ "x0" == "x$1" ];then \ +if [ "x0" == "x$1" ]; then \ res=$(grub2-probe /boot) \ - if[ "xvfat" != "x$res" -a "xfat" != "x$res" ];then \ - rm -f /boot/grub2/grubenv \ + if [ "xvfat" != "x$res" -a "xfat" != "x$res" ]; then \ + rm -f /boot/grub2/grubenv \ fi \ fi \ \ diff --git a/grub2.spec b/grub2.spec index 616b120..0e94b0e 100644 --- a/grub2.spec +++ b/grub2.spec @@ -7,7 +7,7 @@ Name: grub2 Epoch: 1 Version: 2.04 -Release: 12 +Release: 13 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -448,6 +448,9 @@ rm -r /boot/grub2.tmp/ || : %{_datadir}/man/man* %changelog +* Sun Mar 21 2021 orange-snn - 2.04-13 +- fix postun error in grub2-efi-x64 + * Thu Mar 18 2021 yanglu - 2.04-12 - Type:cves - ID:CVE-2020-27779 CVE-2020-14372 -- Gitee