]> git.pld-linux.org Git - packages/kernel.git/commitdiff
fix dtb -> dtb.old rename
authorJan Palus <atler@pld-linux.org>
Thu, 10 Feb 2022 08:37:19 +0000 (09:37 +0100)
committerJan Palus <atler@pld-linux.org>
Thu, 10 Feb 2022 08:37:19 +0000 (09:37 +0100)
kernel.spec

index 0dd24a0cfd986f45b96c588d0e870619492b1c55..ab50a0568395ab5506a85b24af41fa27ec5207e7 100644 (file)
@@ -1127,7 +1127,8 @@ if [[ "$CREATE_SYMLINKS" != [Nn][Oo] ]]; then
        ln -sf vmlinuz-%{kernel_release} /boot/vmlinuz
        ln -sf System.map-%{kernel_release} /boot/System.map
 %ifarch %{arm} aarch64
-       mv -f /boot/dtb{,.old} 2> /dev/null
+       test -L /boot/dtb.old && rm /boot/dtb.old
+       test ! -e /boot/dtb.old && mv -f /boot/dtb{,.old} 2> /dev/null
        ln -sf dtb-%{kernel_release} /boot/dtb
 %endif
 %if 0%{?alt_kernel:1}
This page took 0.083731 seconds and 4 git commands to generate.