This is a new feature that I implemented based on what I had understood were the requirements: integrating needrestart with /run/reboot-required. Apparently, MOTD picks up whatever we write in that file.
Shall I walk that part back and not write to that file in the case of kernel updates? I suppose needrestart could also go through update-notifier and mimick the kernel postinst code somehow?
This is a new feature that I implemented based on what I had understood were the requirements: integrating needrestart with /run/reboot- required. Apparently, MOTD picks up whatever we write in that file.
Shall I walk that part back and not write to that file in the case of kernel updates? I suppose needrestart could also go through update-notifier and mimick the kernel postinst code somehow?