Come posso ottenere update-grub per riconoscere il kernel linux-surface
Ho un Surface Pro 4. Il kernel Linux Surface ( github ) fornisce un supporto hardware migliore rispetto ai kernel di serie, ma sfortunatamente update-grub
non lo riconosce.
Sono in grado di inserire una voce /etc/grub.d/40_custom/
, ma devo farlo manualmente ogni volta che c'è un aggiornamento del kernel.
### 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 ###
Come posso update-grub
riconoscere automaticamente i kernel linux-surface?
EDIT: ulteriori informazioni
- dpkg --list | grep linux-image
- grub.cfg - nota che aggiunge un "timeout: menu" estraneo dopo 30_OS_Prober
- aggiorna grub, 40_custom e ls / boot
Risposte
Aggiungi come file 06_custom in /etc/grub.d/06_custom In / etc / default / grub Cambia GRUB_DEFAULT = 6 Predefinito impostato su 0 per avviare 00_header 6 in modo che corrisponda a 06_custom
penso che sia così che funzionano i numeri per le voci di menu Potrei aver perso un pochi passaggi :)
Questo manuale di Grub ha praticamente tutto ciò di cui hai bisogno molto utile :)
https://www.gnu.org/software/grub/manual/grub/grub.html#Overview