How I upgrade the kernel (Slackware-current).
I use lilo, I have two kernels defined. One labeled Slackware, the other labeled LastWorking. Since I happen to agree with "Automated upgrade of kernel packages aren't a good idea" especially with -current, the "kernel" is of course blacklisted. When a new kernel is indicated in ChangeLog.txt I normally take care of all updates first.
Then take care of the kernel. I edit my blacklist file as follows:
Code:
#kernel-generic
#kernel-headers
kernel-huge
#kernel-modules
#kernel-source
Next I use 'slackpkg download kernel' deselect kernel-firmware and download the rest.
Next I edit blacklist again to blacklist the kernel packages.
Next up... installpkg /var/cache/packages/slackware64/a/*.t?z
I repeat with the d and k series
I then remove those downloaded files.
Next I point the symlinks for my "working" kernel to point to the currently running kernel, the new generic kernel links are already pointed correctly from running installpkg.
As a side note: Rather than type to remove links and the link then again, I use mc to edit the links to my working kernel. Ctrl-X, Ctrl-S makes it easy.
Once that is done I run the following:
Code:
mkinitrd -F -k 1.14.47
mkinitrd -F - k 1.14.44 -s initrd-working-tree -o initrd-working.gz
lilo
At this point I reboot.
After the reboot, I remove the oldest kernel.
On Slackware 14.2 installs I don't bother with blacklisting (except for huge or generic as applicable). I let slackpkg do it thing, run mkinitrd if needed and then lilo after slackpkg is done, then reboot. I have never had a problem doing this.
I see no need to use upgradepkg to install a kernel. That is what installpkg is for, IMHO.