Add scripts for installing grub

This commit is contained in:
Manuel Thalmann 2023-04-01 13:01:04 +02:00
parent 3a2d6ee3d8
commit 8c5e68beb0
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
EFI_BOOT_DIR="${EFI_BOOT_DIR:-"/boot"}";
BOOTLOADER_ID=${BOOTLOADER_ID:-"GRUB"};
pacman -Syu grub efibootmgr;
. ../../Common/GRUB/init.sh;
popd > /dev/null;

View file

@ -0,0 +1,5 @@
#!/bin/bash
EFI_BOOT_DIR="${EFI_BOOT_DIR}";
BOOTLOADER_ID="${BOOTLOADER_ID}";
grub-install --target=x86_64-efi --efi-directory="$EFI_BOOT_DIR" --bootloader-id="$BOOTLOADER_ID";
grub-mkconfig -o "$EFI_BOOT_DIR/grub/grub.cfg";