2020 May 03.
参照元
https://qastack.jp/server/92932/how-does-ubuntu-keep-track-of-the-system-restart-required-flag-in-motd
https://serverfault.com/questions/92932/how-does-ubuntu-keep-track-of-the-system-restart-required-flag-in-motd
/var/run/reboot-required.pkgs に再起動を必要としているパッケージが記載されている。
/var/run/reboot-required に再起動要求メッセージが記載されている。
$ cat /var/run/reboot-required.pkgs
$ cat /var/run/reboot-required
これらは update-notifier-commonパッケージが作成する。
再起動が不要な状態では /var/run/reboot-required が存在しない。