How to upgrade the kernels provided by Slint.

Slint ships kernels that are sometimes upgraded to bring security fixes.

These upgrades should be applied to your Slint system, which needs some
specific tasks as kernel packages are blacklisted in
/etc/slapt-get/slapt-getrc.

Whenever the output of command "slapt-get --upgrade" include blacklisted
kernels, new kernels are available.

Then type as root:
upgrade-kernel

This will:
- upgrade the kernel(s)
- make a new initrd with support for new generic kernel(s) if need be
- update GRUB installing a new configuration file /boot/grub/grub.cfg.
  If run in a portable Slint it will be a custom configuration file as
  noted in the document SlintPortable. 

Important notes:
a) If you didn't install grub when installing Slint, because grub was
already installed in another distribution, you should run update-grub
from this other distribution.
b) If you installed a "custom" kernel, not provided by Slint, the script
could propose you to replace it by a Slint one. You may refuse and
upgrade without using this script.

Last updated 24 July 2019

TODO: detect installed custom kernels.  
