Can I get a warning about EOL of a kernel?

but manjaro is not kernel.org :wink:

for example we have 512, you can use announcements :

curl -Ls https://forum.manjaro.org/c/announcements/stable-updates.rss | awk -F'>| ' '/\[EOL\]/ {print $2" : "$3}' | sort | uniq

Create a simple hook with this:

#/etc/pacman.d/hooks/z_eol_kernels.hook
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = *

[Action]
Description = list Manjaro EOL kernels (or dead)
When = PostTransaction
Depends = curl
#Exec = /usr/bin/curl -Ls https://forum.manjaro.org/c/announcements/stable-updates.rss | awk -F'>| ' '/\[EOL\]/ {print $2" is EOL (or not exists)"}' | sort | uniq
Exec= /path/personalscript

/path/personalscript

#!/usr/bin/bash
/usr/bin/curl -Ls https://forum.manjaro.org/c/announcements/stable-updates.rss | awk -F'>| ' '/\[EOL\]/ {print "  "$2" is (was) EOL"}' | sort | uniq
# after can compare with mhwd-kernel -li and return error if installed EOL
# ...

Target = * : run for all packages (one time by transaction)
Exec : not possible to use pipe so call a script
z_eol_kernels.hook : hooks sorted by filenames (so i use z_xxxxx for run at end)

3 Likes