Removing and adding kernels in Slackware
I have three kernels currently in my lilo.conf.
# Linux bootable partition config begins image = /boot/vmlinuz-generic-3.10.17 initrd = /boot/initrd.gz root = /dev/sdb1 label = Slack read-only # Linux bootable partition config ends # Linux bootable partition config begins image = /boot/vmlinuz-huge-3.14.13 root = /dev/sdb1 label = 31413 # Linux bootable partition config begins image = /boot/vmlinuz root = /dev/sdb1 label = Linux read-only # Linux bootable partition config ends What I'd like to do is remove the generic kernel and leave the huge kernel and the current kernel. I looked around and everything is usually for Ubuntu based distros or Fedora and Redhat. I'd like some information on how to add and remove kernels easily for the future as well. |
Code:
# Linux bootable partition config begins Be carefull when editing this file as some error (kernel names for example) could make the system unbootable, nothing that can not be fixed though |
Quote:
|
As root you use removepkg to remove kernel-generic-version and kernel-modules-version, delete the unneeded part of lilo.conf, run lilo, and you should be good.
Brian |
Don't remove the 'kernel-modules' package unless you're also uninstalling the corresponding 'huge' kernel. The 'huge' kernel isn't completely monolithic: it shares some of the same modules with the 'generic' kernel.
As for removing just the 'kernel-generic' package on its own, I wouldn't bother. As Kenobi would say, "This little one isn't worth your effort.". |
Quote:
Brian |
Check /lib/modules as well.
|
All times are GMT -5. The time now is 06:40 PM. |