Bug 1214436

Summary: `zypper ps -s` won't detect updated libraries core like kernel
Product: [openSUSE] openSUSE Tumbleweed Reporter: Walddys Emmanuel Dorrejo Céspedes <dev.dorrejo>
Component: OtherAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: kukuk
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Walddys Emmanuel Dorrejo Céspedes 2023-08-21 12:42:37 UTC
Today update the kernel to 6.4.11

The following package requires a system reboot:
kernel-default  6.4.11-1.1  x86_64  openSUSE-Tumbleweed-Oss  openSUSE

but when do `zipper ps -s`:

No core libraries or services have been updated since the last system boot.
Reboot is probably not necessary.
Comment 1 Thorsten Kukuk 2023-08-21 13:26:56 UTC
(In reply to Walddys Emmanuel Dorrejo Céspedes from comment #0)
> Today update the kernel to 6.4.11
> 
> The following package requires a system reboot:
> kernel-default  6.4.11-1.1  x86_64  openSUSE-Tumbleweed-Oss  openSUSE
> 
> but when do `zipper ps -s`:
> 
> No core libraries or services have been updated since the last system boot.
> Reboot is probably not necessary.

Which is correct, please read the manual page about "zypper ps":
"zypper ps lists all processes using deleted files, together
           with the corresponding files, and a service name hint, in case
           it’s a known service. This gives a hint which services may need to
           be restarted after an update."

The kernel is no core library or service.

You are looking for:

"/usr/bin/needs-restarting"

Or

"zypper needs-rebooting
Since the last system boot core libraries or services have been updated.
Reboot is suggested to ensure that your system benefits from these updates."
Comment 2 Walddys Emmanuel Dorrejo Céspedes 2023-08-21 13:51:57 UTC
Ok, thanks for the answer, looks like i miss when this behavior change.