Package: needrestart
Version: 3.1-1
Severity: normal

I recently moved a system to a different CPU.

I got lots of needrestart warnings about a pending processor microcode
upgrade but not even a reboot fixed the issue.

The reason is that the initramfs had not been updated yet so restarting
did nothing because the initramfs did not contain any uCode updates for
the new CPU, only the old one.

needrestart should not request a restart in this situation because it
will cause the new uCode to be loaded at boot and thus needrestart will
continue to request a reboot even though that doesn't do anything.

In addition to scanning installed microcode from the intel-microcode
package, I would suggest scanning each of the initramfs files with
iucode_tool (see the command-line below).

If the initramfs uCode is not present or is outdated compared to the
installed uCode, an initramfs rebuild could be suggested.

If no initramfs files are present, the reboot comparison could be done
between the installed and running uCode.

If initramfs files are present, the reboot comparison should be done
between the latest initramfs uCode revision and the running uCode.

Pending processor microcode upgrade!

Diagnostics:
  The currently running processor microcode revision is ... which is not the 
expected microcode revision ....

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

$ /usr/sbin/iucode_tool -tr -Sl /boot/initrd.img-4.15.0-3-amd64 
/usr/sbin/iucode_tool: system has processor(s) with signature ...
microcode bundle 1: /boot/initrd.img-4.15.0-3-amd64
selected microcodes:

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), 
LANGUAGE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages needrestart depends on:
ii  binutils                   2.30-15
ii  dpkg                       1.19.0.5
ii  gettext-base               0.19.8.1-6
ii  libintl-perl               1.26-2
ii  libmodule-find-perl        0.13-1
ii  libmodule-scandeps-perl    1.24-1
ii  libproc-processtable-perl  0.55-1
ii  libsort-naturally-perl     1.03-2
ii  libterm-readkey-perl       2.37-1+b2
ii  perl                       5.26.2-2
ii  xz-utils                   5.2.2-1.3

Versions of packages needrestart recommends:
ii  libpam-systemd  238-4

Versions of packages needrestart suggests:
ii  iucode-tool          2.3.1-1
ii  libnotify-bin        0.7.7-3
ii  needrestart-session  0.3-5

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to