Thank you for reading this post, don't forget to subscribe!
Простое обновление Grub на сервере CentOS.
Проверьте настройки Grub по умолчанию.
1 2 3 4 5 6 7 |
GRUB_TIMEOUT=1 GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 elevator=noop crashkernel=auto" GRUB_DISABLE_RECOVERY="true" |
Определите точное местоположение файла конфигурации.
1 2 |
$ sudo readlink -e /etc/grub2.cfg |
1 |
/boot/grub2/grub.cfg |
Обновите конфигурацию Grub.
1 2 |
$ sudo grub2-mkconfig --output /boot/grub2/grub.cfg |
1 2 3 4 5 6 |
Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.10.0-1160.25.1.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1160.25.1.el7.x86_64.img Found linux image: /boot/vmlinuz-3.10.0-1127.el7.x86_64 Found initrd image: /boot/initramfs-3.10.0-1127.el7.x86_64.img done |