From 1147fc9e29a5ad75bcc1d4a2f5e12998f0e9db73 Mon Sep 17 00:00:00 2001 From: Souvik Sarkar Date: Tue, 25 Jul 2023 17:02:21 +0530 Subject: [PATCH] Adding example for kexec (#1558) fixed an extra space in the command Fixed the remark Editorial fixes based on Tanja's suggestion Additional style fixes --- xml/tuning_kexec.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/xml/tuning_kexec.xml b/xml/tuning_kexec.xml index 9e2769e33e..1fc05744e1 100644 --- a/xml/tuning_kexec.xml +++ b/xml/tuning_kexec.xml @@ -113,7 +113,11 @@ &kexec; internals - + ssarkar 07-25-2023: + We can reinforce the existing content with material from https://wiki.archlinux.org/title/kexec, + especially from the systemd-boot and troubleshooting sections. Perhaps it is better to take it up + when writing smart docs on these topics. + The most important component of &kexec; is the /sbin/kexec command. You can load a kernel with &kexec; @@ -189,6 +193,14 @@ /proc/cmdline) more_options". + + For example, to load the /boot/vmlinuz-5.14.21-150500.53-default kernel image + with the command line of the currently running production kernel and the + /boot/initrd file, run the following command: + +&prompt.root; kexec -l /boot/vmlinuz-5.14.21-150500.53-default \ + --append="$(cat /proc/cmdline)" --initrd=/boot/initrd + You can always unload the previously loaded kernel. To unload a kernel that was loaded with the option, use the