[packages/kernel] handle dtb symlinks for %{_alt_kernel}

atler atler at pld-linux.org
Mon Dec 4 01:59:42 CET 2023


commit 0b2f1d0032b0dccbd1647d3f036fe1d913fd3a44
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Dec 3 21:41:01 2023 +0100

    handle dtb symlinks for %{_alt_kernel}

 kernel.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/kernel.spec b/kernel.spec
index 72360b07..98b6615e 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -1129,6 +1129,11 @@ if [[ "$CREATE_SYMLINKS" != [Nn][Oo] ]]; then
 	mv -f /boot/System%{_alt_kernel}.map{,.old} 2> /dev/null
 	ln -sf vmlinuz-%{kernel_release} /boot/vmlinuz%{_alt_kernel}
 	ln -sf System.map-%{kernel_release} /boot/System.map%{_alt_kernel}
+%ifarch %{arm} aarch64
+	test -L /boot/dtb%{_alt_kernel}.old && rm /boot/dtb%{_alt_kernel}.old
+	test ! -e /boot/dtb%{_alt_kernel}.old && mv -f /boot/dtb%{_alt_kernel}{,.old} 2> /dev/null
+	ln -sf dtb-%{kernel_release} /boot/dtb%{_alt_kernel}
+%endif
 %endif
 fi
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/0b2f1d0032b0dccbd1647d3f036fe1d913fd3a44



More information about the pld-cvs-commit mailing list