diff --git a/20-grub.install b/20-grub.install index 2a0ac323725056a79408466f812f75f0b539af27..739191040221b01827743f718a46a36d74a7e304 100755 --- a/20-grub.install +++ b/20-grub.install @@ -62,7 +62,7 @@ case "$COMMAND" in "$KERNEL_DIR"/dtb do [[ -e "$i" ]] || continue - rm -f "/boot/${i##*/}-${KERNEL_VERSION}" + rm -rf "/boot/${i##*/}-${KERNEL_VERSION}" cp -aT "$i" "/boot/${i##*/}-${KERNEL_VERSION}" command -v restorecon &>/dev/null && \ restorecon -R "/boot/${i##*/}-${KERNEL_VERSION}" diff --git a/grub2.spec b/grub2.spec index d6c657c0ee1101e5c7549bf45ee329c7072573cd..150af1fc21bee05805661f516cbd8b839821dadc 100644 --- a/grub2.spec +++ b/grub2.spec @@ -1,4 +1,4 @@ -%define anolis_release 8 +%define anolis_release 9 %global _lto_cflags %{nil} %undefine _hardened_build @@ -505,6 +505,9 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg %endif %changelog +* Thu Mar 02 2023 Chunmei Xu - 2.06-9 +- fix remove dtb-xxx dir failed + * Mon Dec 19 2022 Funda Wang - 2.06-8 - Deal with gettext-runtime migration