Linux yüzey çekirdeğini tanımak için update-grub'u nasıl edinebilirim

Aug 18 2020

Surface Pro 4'üm var . Linux yüzey çekirdeği ( github ) stok çekirdeklerden daha iyi donanım desteği sağlıyor, ancak ne yazık ki update-grubbunu tanımıyor.

Bir girdi koyabiliyorum /etc/grub.d/40_custom/, ancak bunu her çekirdek güncellemesi olduğunda manuel olarak yapmam gerekiyor.

### 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 yüzey çekirdeklerini otomatik olarak nasıl tanıyabilirim?

DÜZENLE: Daha fazla bilgi

Yanıtlar

Sub-ZeroXXX Aug 20 2020 at 06:28

6 00_header boot 0'a /etc/grub.d/06_custom içinde 06_custom dosyası olarak ise / etc / default / grub Değişim GRUB_DEFAULT = 6 Standart kümesi ekle 06_custom eşleşecek
i numaraları menü girişleri için nasıl çalıştığını ı a kaçırmış olabilir düşünüyorum birkaç adım :)

Bu Grub El Kitabı, ihtiyacınız olan hemen her şeye sahiptir :)

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