-
Notifications
You must be signed in to change notification settings - Fork 0
Kernel management
Cereus Linux by default uses the latest Long Term Support kernel (LTS). To install any other kernel packaged in Void repositories and its headers, run, for example:
# xbps-install -S linux5.15 linux5.15-headers
To install the latest mainline kernel, run:
# xbps-install -S linux
By default, Cereus blocks the automatic installation of linux-headers
metapackage as DKMS depends on it and currently we can't re-package all DKMS packages to use instead an LTS kernel. If you need mainline headers, first make XBPS to stop ignoring them:
# sed -i 's|ignorepkg=linux-headers|#ignorepkg=linux-headers|g' /etc/xbps.d/00-ignore.conf
Now you can safely install them:
# xbps-install -S linux-headers
While it is advisable to keep the default kernel provided by base-cereus
metapackage, you can remove it. Please note that you MUST have booted first with another kernel.
You'll need to make XBPS to ignore those packages, to do that, add the following to /etc/xbps.d/00-ignore.conf
:
ignorepkg=linux-default-cereus
ignorepkg=linux-default-cereus-headers
Once done this, you can safely remove it as always:
# xbps-remove -R linux-default-cereus linux-default-cereus-headers
Every time you update the kernel, the system keeps the old ones until you manually remove them, by safety reasons. We recommend do this whenever you cumulate two or three kernels of the same branch.
To list all installed old kernels, run:
vkpurge list
To remove an specific old kernel, run, for example:
vkpurge rm linux6.1.10_1
To remove all old kernels, run:
vkpurge rm all
Please note that vkpurge
will not list an old kernel if you have booted on it, so you should boot first with the latest kernel of your branch.