Add scripts for installing grub
This commit is contained in:
parent
3a2d6ee3d8
commit
8c5e68beb0
2 changed files with 14 additions and 0 deletions
9
scripts/Software/Arch/GRUB/install.sh
Normal file
9
scripts/Software/Arch/GRUB/install.sh
Normal 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;
|
5
scripts/Software/Common/GRUB/init.sh
Normal file
5
scripts/Software/Common/GRUB/init.sh
Normal 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";
|
Loading…
Reference in a new issue