From 465b759e5dd3a9913ace4ade1f7a8d5023c20513 Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Thu, 18 Aug 2022 16:47:48 +0800 Subject: [PATCH] kernel-install: remove dtb dir with correct rm argument --- 20-grub.install | 2 +- grub2.spec | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/20-grub.install b/20-grub.install index 9b74538..a05c15c 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 fb50ea8..8416300 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) -- Gitee