Package: needrestart
Version: 2.11-4
Severity: wishlist

Please detect the need to reboot to apply AMD microcode updates.

The amd64-microcode maintainer suggested that this could be done by 
detecting that the initramfs is newer than uptime, and if so, look at
the microcode files in the package and check if they are newer than
uptime but older than the initramfs. If the microcode files are newer
than the initramfs and newer than the uptime there could be a warning.

$ apt-file show amd64-microcode | grep ucode
amd64-microcode: /lib/firmware/amd-ucode/microcode_amd.bin
amd64-microcode: /lib/firmware/amd-ucode/microcode_amd_fam15h.bin
amd64-microcode: /lib/firmware/amd-ucode/microcode_amd_fam16h.bin

This might require packaging the Unix::Uptime CPAN module:

https://metacpan.org/pod/Unix::Uptime
https://github.com/pioto/Unix-Uptime

Until that happens, you could parse /proc/uptime manually.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

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

Reply via email to