GNU nano 5.4 /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub #
文件头部写到由/etc/grub.d和/etc/default/grub文件生成
编辑/etc/default/grub
cangyue@GEEK:~$ sudo nano /etc/default/grub
GNU nano 5.4 /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration'
Sourcing file `/etc/default/grub' Sourcing file `/etc/default/grub.d/init-select.cfg' Generating grub configuration file ... Found theme: /boot/grub/theme/simple/theme.txt Found linux image: /boot/vmlinuz-5.11.0-49-generic Found initrd image: /boot/initrd.img-5.11.0-49-generic Found linux image: /boot/vmlinuz-5.11.0-46-generic Found initrd image: /boot/initrd.img-5.11.0-46-generic Adding boot menu entry for UEFI Firmware Settings done