diff --git a/20-grub.install b/20-grub.install index 9b74538c576daefc20ae2fc5209ba49c78c87add..a05c15c5bceecef6c531acc2a01050640ae580f0 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 fb50ea88bb001a51648dc0f521d26587e59085ed..8416300369680dd16363d0fe8cec4f5e23048b14 100644 --- a/grub2.spec +++ b/grub2.spec @@ -527,6 +527,7 @@ fi - Delete LoongArch64 support old version due to compile error - Add LoongArch64 support - LoongArch64 support fdt and phy-addr BIOS +- Remove dtb dir with correct argument (Liwei Ge) * Fri Jun 17 2022 Bo Ren - 2.02-123.0.1.8 - Build pc-modules package on x86_64 (geliwei@openanolis.org)