[Pkg-raspi-maintainers] Bug#979977: Bug#979977: raspi-firmware: Seems to ignore latest installed kernel (5.10.0-1-armmp-lpae) while the booting kernel is older (5.10.0-trunk-armmp-lpae)

Diederik de Haas didi.debian at cknow.org
Thu Jan 28 20:52:29 GMT 2021


On donderdag 28 januari 2021 18:04:29 CET Gunnar Wolf wrote:
>     latest_initrd=$(ls -1 /boot/initrd.img-* | grep -v '\.dpkg-bak$' | sort
> -V -r | head -1) if [ -z "$latest_initrd" ]; then
>       echo "raspi-firmware: no initrd found in /boot/initrd.img-*, cannot
> populate /boot/firmware" exit 0
>     fi
> 
> So... Yes, it behaves as you report. Modifying the logic to search in
> /tmp/boot:
> 
>     $ touch /tmp/boot/vmlinuz-{5.10.0-trunk-armmp-lpae,5.10.0-1-armmp-lpae}
>     $ latest_kernel=$(ls -1 /tmp/boot/vmlinuz-* | grep -v '\.dpkg-bak$' |
> sort -V -r | head -1) $ echo $latest_kernel
>     /tmp/boot/vmlinuz-5.10.0-trunk-armmp-lpae
> 
> Now... What to do here?

ls -1t ? (And get rid of the "sort -V -r")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://alioth-lists.debian.net/pipermail/pkg-raspi-maintainers/attachments/20210128/332b5064/attachment.sig>


More information about the Pkg-raspi-maintainers mailing list