GRUB - Grand Unified Boot Loader
====================================================================================
GrubGRUBs responsibility in the boot process
====================================================================================
GRUB Configuration Options
Grub optionsThere are configured2 directories to note when talking about GRUB;
/etc/grub - This directory stores configuration scripts that define boot entries for GRUB2.
/boot/grub - This directory stores the actual GRUB2 configuration files used during boot.
There are also 2 commands to note for GRUB configuration:
grubby
-
Function:
grubbyis a command-line tool that allows you to directly manipulate individual GRUB2 menu entries on your system. It provides functionalities for:- Setting the default boot entry
- Adding, removing, or modifying existing entries
- Changing boot order
- Viewing information about current entries
-
Focus:
grubbyoperates on individual boot entries within/boot/grub2/grubenvthe existing GRUB2 configuration.resume
grub2-mkconfig
- Function:
grub2-mkconfig(rarelyorused)sometimes-shortenedessentiallytoforupdate-grubsystemsonwithsome systems) is a'sleep mode' - not really everutility usedontoservers,regeneratemoretheofGRUB2aconfigurationdesktop feature.rhgbfile (rarelygrub.cfg)used)located-ingraphical/boot/grub.bootItscreen,readsratherconfigurationthanscriptstextfrom-thenot/etc/grub.dreallydirectory. - Focus:
usedgrub2-mkconfigfocuses ona server, more of a desktop feature.quiet (rarely used) - hidesrebuilding thebootentireoutputGRUB2whenconfigurationbootingfilea system up - not really ever usedbased onatheserver,definedmorescripts.ofThisa desktop feature.
fileGrub options can be changed usingensures thegrubbygrub.cfgcommandremovereflectsrhgbanyfeature for all kernels installedgrubby --update=ALL --remove-args="rhgb"Changeschanges madeusing grubby modifyto thegrubenvconfigurationfile, whichscripts inturn/etc/grub.d.
====================================================================================