From ed4603c7fe8fd07d8bf213e4a5f0abf0166ea683 Mon Sep 17 00:00:00 2001 From: Johan Degn <54548365+johandegn@users.noreply.github.com> Date: Tue, 7 Mar 2023 05:51:38 +0100 Subject: [PATCH] grub-reboot: add page (#9914) * grub-reboot: add page * Apply suggestions from code review Co-authored-by: K.B.Dharun Krishna Co-authored-by: Jack Lin --------- Co-authored-by: K.B.Dharun Krishna Co-authored-by: Jack Lin --- pages/linux/grub-reboot.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pages/linux/grub-reboot.md diff --git a/pages/linux/grub-reboot.md b/pages/linux/grub-reboot.md new file mode 100644 index 000000000..97242b1e3 --- /dev/null +++ b/pages/linux/grub-reboot.md @@ -0,0 +1,12 @@ +# grub-reboot + +> Set the default boot entry for GRUB, for the next boot only. +> More information: . + +- Set the default boot entry to an entry number, name or identifier for the next boot: + +`sudo grub-reboot {{entry_number}}` + +- Set the default boot entry to an entry number, name or identifier for an alternative boot directory for the next boot: + +`sudo grub-reboot --boot-directory {{/path/to/boot_directory}} {{entry_number}}`