From edc4c7c8a0d19f543e071131cd5f7cc1ebe71158 Mon Sep 17 00:00:00 2001 From: Timothée Ravier Date: Jan 27 2021 02:45:37 +0000 Subject: GRUB 2: Add example for new boot entries with additional kargs --- diff --git a/modules/system-administrators-guide/pages/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader.adoc b/modules/system-administrators-guide/pages/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader.adoc index b864790..68b8e22 100644 --- a/modules/system-administrators-guide/pages/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader.adoc +++ b/modules/system-administrators-guide/pages/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader.adoc @@ -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