[LINUX] Setting up grub on CentOS 8

0. Work content

-In CentOS 8, I want to reduce the OS selection standby time on the grub2 screen. (I want to play with other settings)

1. Change grub settings with administrator privileges

$ sudo vi /etc/default/grub
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/ro$
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

2. Reflection of changes to the system

BIOS-based machines as root

grub2-mkconfig -o /boot/grub2/grub.cfg

UEFI based machines as root

grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

What is grub2-mkconfig?


The GRUB 2 script searches the user's computer and builds a boot menu based on the operating system the script finds. The boot menu is automatically rebuilt when the kernel is updated or a new kernel is added to reflect the latest system boot options. However, there may be times when the user wants to build a menu that contains specific entries, or a specific order of entries. GRUB 2 allows basic boot menu customization and allows the user to control what is displayed on the screen. https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/7/html/system_administrators_guide/sec-customizing_the_grub_2_configuration_file


Recommended Posts

Setting up grub on CentOS 8
Until docker-compose up on CentOS7
Set up Python environment on CentOS
Setting up a CentOS 7 server hosted on Alibaba Cloud ECS
Notes for setting up pydicom on macOS
Notes on setting up tensorflow-gpu on MacBook Pro (Mid 2012)
Install Faiss on CentOS 7
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Installation on CentOS8 VirtualBox
Install awscli on centos7
Install Chainer on CentOS 6.7
Torque setup on CentOS 6
PySpark: Set up PySpark on your Alibaba Cloud CentOS instance
Implemented retina net on CentOS
Anaconda environment construction on CentOS7
Install ImageMagick-6.2.x series on CentOS7.7
Install Python 3.8 on CentOS 7 (SCL)
Apache installation fails on CentOS 8.2
Simple traffic monitor on CentOS
Install Chrome on CentOS 7 series
Set up Polyglot on Windows
[WSL2] CentOS 8 VScode setting memo
Install Python 3.8 on CentOS 8 (AppStream)
Notes on installing Python on CentOS
Ansible playbook for setting up Python preferences using pyenv on Mac
The day Chainer runs on GPU CentOS edition (up to CPU)
Steps to install MySQL 8.0 on CentOS 8.1
raspberry pi 4 centos7 install on docker
Steps to install VirtualBox on CentOS
Install java (Oracle JDK14) on CentOS7
[Linux] I installed CentOS on VirtualBox
How to install PyPy on CentOS
How to install TensorFlow on CentOS 7
Install pip on CentOS7. Also iPython.
Create a python environment on centos
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Install Python on CentOS using Pyenv
How to install Maven on CentOS
Build a python3 environment on CentOS7
Study Note 9_Install Jenkins on CentOS7
Install Python on CentOS using pyenv