GRUB 2: Add example for new boot entries with additional kargs

This commit is contained in:
Timothée Ravier 2020-11-16 10:19:45 +01:00 committed by pbokoc
commit edc4c7c8a0

View file

@ -199,6 +199,16 @@ title=Fedora (4.2.0-1.fc23.x86_64) 23 (Workstation Edition)
See the `grubby(8)` manual page for more command options.
.Adding a new entry with additionnal kernel arguments
To add a new entry with the default kernel but with additionnal kernel arguments and make it the default entry, use:
[subs="macros"]
----
~]# grubby --add-kernel $(grubby --default-kernel) --copy-default --args=crashkernel=128M --title "Default kernel with kdump support" --make-default
----
In this example, we set the `crashkernel=128M` argument for kdump support.
[[sec-Customizing_the_GRUB_2_Configuration_File]]
== Customizing the GRUB 2 Configuration File