From 6c37d8813cb278d3d2d63b1bfe641a93c4d1ebaa Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sun, 28 Feb 2021 16:12:20 +0200 Subject: [PATCH] grub-install, grub-mkconfig: add page (#5261) --- grub-mkconfig.md | 16 ++++++++++++++++ pages/linux/grub-install.md | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 grub-mkconfig.md create mode 100644 pages/linux/grub-install.md diff --git a/grub-mkconfig.md b/grub-mkconfig.md new file mode 100644 index 000000000..20ed3ee33 --- /dev/null +++ b/grub-mkconfig.md @@ -0,0 +1,16 @@ +# grub-mkconfig + +> Generate a GRUB configuration file. +> More information: + +- Do a dry run and print the configuration to stdout: + +`sudo grub-mkconfig` + +- Generate the configuration file: + +`sudo grub-mkconfig --output={{/boot/grub/grub.cfg}}` + +- Print the help page: + +`grub-mkconfig --help` diff --git a/pages/linux/grub-install.md b/pages/linux/grub-install.md new file mode 100644 index 000000000..9be6c8a16 --- /dev/null +++ b/pages/linux/grub-install.md @@ -0,0 +1,16 @@ +# grub-install + +> Install GRUB to a device. +> More information: . + +- Install GRUB on a BIOS system: + +`grub-install --target={{i386-pc}} {{path/to/device}}` + +- Install GRUB on an UEFI system: + +`grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --bootloader-id={{GRUB}}` + +- Install GRUB pre-loading specific modules: + +`grub-install --target={{x86_64-efi}} --efi-directory={{path/to/efi_directory}} --modules="{{part_gpt part_msdos}}"`