update-grub は、すべてのディストリビューションの 2 つのコピーを探します。

update-grub は、すべてのディストリビューションの 2 つのコピーを探します。

以下は、外部(/dev/sdb)および内部(/dev/sda)SSDを持つ私のシステムからのupdate-grubの出力です。起動した各OSのコピーが2つずつ表示される理由を知っている人はいますか?それとも、どうやって再起動しますか?

    root@hp:~# 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.13.0-22-generic
    Found initrd image: /boot/initrd.img-5.13.0-22-generic
    Found linux image: /boot/vmlinuz-5.13.0-19-generic
    Found initrd image: /boot/initrd.img-5.13.0-19-generic
    Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
    Found Manjaro Linux (21.2.0) on /dev/sda6
    Found Manjaro Linux (21.2.0) on /dev/sdb2
    Found Ubuntu MATE 21.10 (21.10) on /dev/sdb3
    Found Manjaro Linux (21.2.0) on /dev/sdb5
    Found UbuntuImp 21.10 (21.10) on /dev/sdb6
    =?why 2nd pass?=> Adding boot menu entry for UEFI Firmware Settings
    Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
    Found Manjaro Linux (21.2.0) on /dev/sda6
    Found Manjaro Linux (21.2.0) on /dev/sdb2
    Found Ubuntu MATE 21.10 (21.10) on /dev/sdb3
    Found Manjaro Linux (21.2.0) on /dev/sdb5
    Found UbuntuImp 21.10 (21.10) on /dev/sdb6
    Adding boot menu entry for UEFI Firmware Settings
    done

ベストアンサー1

私にとっての解決策は、/etc/grub.dのすべてを他の同様のディストリビューションのより一般的なものに置き換えることでした。 os-proberが2回実行される原因を変更したことは間違いありません。

おすすめ記事