Am 3. März 2019 18:15:37 schrieb Pablo Sebastián Greco pablo@fliagreco.com.ar:
El 3/3/19 a las 13:24, Pablo Sebastián Greco escribió:
El 3/3/19 a las 12:24, Thorsten Holtkämper escribió:
Hi all,
kernel upgrades on the raspi sometimes end up with not the latest kernel being "activated" in the /boot directory. The reason for this is the kernel rpm postuninstall script of the old kernel that is removed:
postuninstall scriptlet (using /bin/sh): cp $(ls -1 /boot/kernel-*-*|tail -1) /boot/kernel7.img cp $(ls -1d /usr/share/raspberrypi2-kernel/*-*/|tail -1)/boot/*.dtb /boot/ cp $(ls -1d /usr/share/raspberrypi2-kernel/*-*/|tail -1)/boot/overlays/*.dtb* /boot/overlays/
It chooses the latest kernel version with "ls -1 /boot/kernel-*-*|tail -1" which fails for kernel versions that have different number of digits in the version string, e.g. 4.9 and 4.14 or 4.14.91 and 4.14.103.
An additional "sort -V" should fix the problem, i.e. "ls -1 /boot/kernel-*-*|sort -V|tail -1".
What do you think?
That looks bad!!!, you may even end up removing your current kernel. The sort -V seems to do what we need to, but this will be a problem until the last 4.14.xx is removed from the system. I'll try to build a new kernel later today, so we can start testing this.
Thanks for the report. Pablo.
Best regards, Thorsten
Just pushed a build with these changes https://git.stg.centos.org/rpms/raspberrypi2/c/94eb3c3ad1e3828a885cf5e5178fc...
When it finishes, it should appear here https://buildlogs.centos.org/c7-kernels.armhfp/raspberrypi2/ (it should be in a few hours)
Let me know if you can test and how it went.
I could do some testing, but there is no new kernel at the given URL.
BR, Thorsten
Thanks.
Pablo. _______________________________________________ Arm-dev mailing list Arm-dev@centos.org https://lists.centos.org/mailman/listinfo/arm-dev