On Dienstag, 14. Juni 2016 23:20:47 CEST Thomas Liske wrote: > On Mon, Jun 13, 2016 at 09:43:26AM +0200, Martin Steigerwald wrote: […] > > mondschein:~> cat /proc/version > > Linux version 4.5.0-0.bpo.2-686 (debian-ker...@lists.debian.org) (gcc > > version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Debian 4.5.4-1~bpo8+1 > > (2016-05-13) > > > > > > Why doesn´t it just use uname -r and be done with it? > > Using `uname -r` would hide ABI compatible (security) updates :-(
I wonder whether a needrestart kernel postinst hook would work. Just set a flag "new kernel installed" in some file then and use that? It wouldn´t work for manually installed kernels tough. -- Martin