Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive pending kernel upgrade message #49

Closed
evgkrsk opened this issue Nov 11, 2016 · 1 comment
Closed

False positive pending kernel upgrade message #49

evgkrsk opened this issue Nov 11, 2016 · 1 comment
Assignees
Labels
Milestone

Comments

@evgkrsk
Copy link

evgkrsk commented Nov 11, 2016

After updating v2.9 -> v2.10 I have see unexpected message about pending kernel upgrade:

root@thinkpad ~ #needrestart -q -r l
Pending kernel upgrade!

Running kernel version:
  4.8.5-un-def-alt1

Diagnostics:
  The currently running kernel version is not the expected kernel version 4.8.5-un-def-alt1.img.

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting. [Return]
^C
[1]    6162 interrupt  needrestart -q -r l
root@thinkpad ~ #ls -lht /boot/vmlinu* |egrep -v -- '->'
-rw-r--r-- 1 root root 3.8M Oct 28 23:13 /boot/vmlinuz-4.8.5-un-def-alt1
root@thinkpad ~ #ls -lht /boot/*.img |egrep -v -- '->'
-rw------- 1 root root 7.3M Oct 30 12:02 /boot/initrd-4.8.5-un-def-alt1.img
root@thinkpad ~ #

Not sure if I must patch-out needrestart for my distribution or there is more generic solution.

@evgkrsk evgkrsk changed the title False positive pending kernel upgrade False positive pending kernel upgrade message Nov 11, 2016
@liske liske added the bug label Nov 14, 2016
@liske liske added this to the v2.11 milestone Nov 14, 2016
@liske liske self-assigned this Nov 14, 2016
@liske
Copy link
Owner

liske commented Nov 14, 2016

Hi,

this is a regression due to changes for #38. needrestart thinks your initrd image is a kernel image, tries to get it's version number (and failes) and uses a part of the filename instead.

@liske liske closed this as completed in 836aab2 Nov 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants