GRUB bootloader in Rocky Linux
| Introduction | |
| Where is the Grub bootloader in Linux? | |
| GRUB 2 Bootloader | |
| Similar articles |
Introduction
Grub - GRand Unified Bootloader
Where is the Grub bootloader in Linux?
/etc/default/grub
/etc/grub.d
GRUB 2 Bootloader
You need to edit or /etc/default/grub folder
/etc/grub.d
For example,
vi /etc/default/grub
Change timeout / screen resolution / set background image
GRUB_TIMEOUT=10
GRUB_GFXMODE=1920x1200
GRUB_BACKGROUND="new_pict.jpg"
The picture must first be placed in the directory.
/boot/grub Because it contains a file.
grub.cfg
which controls the boot.
After changing the picture, you may need to change the color of the text and design,
You need to add it to the end of the file.
/etc/grub.d/40_custom
information on colors, example:
set menu_color_normal=red/black
set menu_color_highlight=yellow/black
set color_normal=yellow/black
Changes that have been recorded in /etc/default/grub come into force must be done
update grub2
Script editing:
cd /etc/grub.d
ls
Contents of the directory:
00_header 10_linux 30_os-prober 41_custom
05_debian_theme 20_linux_xen 40_custom README
You usually have to edit. 40_customIf, for example, you install before Debian FreeBSD and it after installing Debian is not visible at boot time you need to add a record
menuentry 'FreeBSD 9.0 Release'{
set root=(hd0,2)
chainloader +1
}
In order for the changes to take effect, command must be executed.
grub-mkconfig -o /boot/grub/grub.cfg
Article author: Andrei Olegovich