定期メンテナンスのために各環境のアップデートをしていると、次の次の警告が表示されました。
Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration. Check GRUB_DISABLE_OS_PROBER documentation entry. done Removing linux-modules-5.15.0-116-generic (5.15.0-116.126) ...
ググったらこれを発見。
下に二つ対応方法が書かれていますが、他のOSをブートする必要がなければos-proberパッケージを削除して、その可能性があるなら次のように実行すればいいそうです。
$ sudo vi /etc/default/grub ... GRUB_DISABLE_OS_PROBER=false #Add $ sudo os-prober $ sudo update-grub
そこで、やってみると
Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.15.0-125-generic Found initrd image: /boot/initrd.img-5.15.0-125-generic Found linux image: /boot/vmlinuz-5.15.0-117-generic Found initrd image: /boot/initrd.img-5.15.0-117-generic Warning: os-prober will be executed to detect other bootable partitions. Its output will be used to detect bootable binaries on them and create new boot entries. done
別のメッセージが出てます。 これについてはこちら。
GRUB_DISABLE_OS_PROBER=falseさえ設定してあれば無視して良い。どうしても気になるならapt-get purge os-proberしちゃえってことみたいです。
とりあえず私は無視しておこうと思います。