Package: needrestart
Version: 3.11-1
Severity: normal

It seems like needrestart -p always asks for root, even when -k is used,
and when it would work just fine without it:

$ needrestart -k
Scanning linux images...

Pending kernel upgrade!

Running kernel version:
  6.12.21-amd64

Diagnostics:
  The currently running kernel version is not the expected kernel version 
6.12.22-amd64.

Restarting the system to load the new kernel will not be handled automatically, 
so you should consider rebooting. [Return]

$ needrestart -p -k
UNKN - This plugin needs to be run as root!
$ fakeroot needrestart -p -k
CRIT - Kernel: 6.12.21-amd64!=6.12.22-amd64 (!!)|Kernel=2;0;;0;2

Could you please consider relaxing the requirement for it to be run as
root for -p to be used?  I can use fakeroot, but it seems a bit silly.

Cheers,
-- 
Tollef Fog Heen
UNIX is user friendly, it's just picky about who its friends are

Reply via email to