Manage Linux kernel packages on APT-based systems
Return the version of the running kernel.
salt '*' kernelpkg.active
Remove all unused kernel packages from the system.
In the event that the active kernel is not the latest one installed, setting this to True will retain the latest kernel package, in addition to the active one. If False, all kernel packages other than the active one will be removed.
salt '*' kernelpkg.cleanup
Return the version of the latest kernel from the package repositories.
salt '*' kernelpkg.latest_available
Return the version of the latest installed kernel.
salt '*' kernelpkg.latest_installed
Return a list of all installed kernels.
salt '*' kernelpkg.list_installed
Detect if a new kernel version has been installed but is not running. Returns True if a new kernel is installed, False otherwise.
salt '*' kernelpkg.needs_reboot
Remove a specific version of the kernel.
The release number of an installed kernel. This must be the entire release
number as returned by
not the package name.
salt '*' kernelpkg.remove 4.4.0-70-generic
Upgrade the kernel and optionally reboot the system.
Request a reboot if a new kernel is available.
Schedule the reboot at some point in the future. This argument
is ignored if
reboot() for more details
on this argument.
salt '*' kernelpkg.upgrade salt '*' kernelpkg.upgrade reboot=True at_time=1
An immediate reboot often shuts down the system before the minion has a chance to return, resulting in errors. A minimal delay (1 minute) is useful to ensure the result is delivered to the master.
Detect if a new kernel version is available in the repositories. Returns True if a new kernel is available, False otherwise.
salt '*' kernelpkg.upgrade_available