From 8b7549809214ceec0d8920b315630675f1f6359f Mon Sep 17 00:00:00 2001 From: Pablo Greco Date: Mar 04 2019 21:55:47 +0000 Subject: Revert "Don't change current kernel on uninstall, unless it is the booted one". There are some cases where it doesn't work as we want. This reverts commit 5996d0861969236a1b6bfc7480fbfdf072472f42. --- diff --git a/SPECS/raspberrypi2.spec b/SPECS/raspberrypi2.spec index 8cf5126..50395bc 100644 --- a/SPECS/raspberrypi2.spec +++ b/SPECS/raspberrypi2.spec @@ -182,12 +182,10 @@ cp /usr/share/%{name}-kernel/%{version}-%{release}/boot/overlays/README /boot/ov #/usr/sbin/dracut /boot/initramfs-%{version}-%{release}.img %{version}-%{release} %postun kernel -if [ ! -f /boot/kernel7.img ] || [ $(uname -r) = "%{version}-%{release}" ];then cp $(ls -1 /boot/kernel-*-*|sort -V|tail -1) /boot/kernel7.img cp $(ls -1d /usr/share/%{name}-kernel/*-*/|sort -V|tail -1)/boot/*.dtb /boot/ cp $(ls -1d /usr/share/%{name}-kernel/*-*/|sort -V|tail -1)/boot/overlays/*.dtb* /boot/overlays/ cp $(ls -1d /usr/share/%{name}-kernel/*-*/|sort -V|tail -1)/boot/overlays/README /boot/overlays/ -fi %files kernel-devel %defattr(-,root,root)