linux-surfaceカーネルを認識するためにupdate-grubを取得するにはどうすればよいですか?

Aug 18 2020

私はSurfacePro 4を持っています。LinuxSurfaceカーネル(github)は、ストックカーネルよりも優れたハードウェアサポートを提供しますが、残念ながらupdate-grubそれを認識しません。

にエントリを入れることはでき/etc/grub.d/40_custom/ますが、カーネルが更新されるたびに手動で行う必要があります。

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry 'Ubuntu (4.19.139-surface-lts)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        savedefault
        load_video
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  cf93f3eb-59be-4eba-835b-03ac8f082424
        else
          search --no-floppy --fs-uuid --set=root cf93f3eb-59be-4eba-835b-03ac8f082424
        fi
        linux   /boot/vmlinuz-4.19.139-surface-lts root=UUID=cf93f3eb-59be-4eba-835b-03ac8f082424 ro  quiet splash $vt_handoff
        initrd  /boot/initrd.img-4.19.139-surface-lts
}
### END /etc/grub.d/40_custom ###

update-grubLinux-Surfaceカーネルを自動的に認識するにはどうすればよいですか?

編集:詳細情報

回答

Sub-ZeroXXX Aug 20 2020 at 06:28

/etc/grub.d/06_customに06_customファイルとして追加します/ etc / default / grubにGRUB_DEFAULT = 6を変更します06_customに一致するように00_header6を起動するようにデフォルトを0に設定し
ますいくつかのステップ:)

このGrubマニュアルには、非常に便利なものがすべて含まれています:)

https://www.gnu.org/software/grub/manual/grub/grub.html#Overview