PortValhalla/scripts/Arch/Software/GRUB/install.sh

16 lines
358 B
Bash
Raw Normal View History

2023-04-01 11:01:04 +00:00
#!/bin/bash
2023-04-03 08:50:10 +00:00
# Elevate script
if [ ! "$UID" -eq 0 ]
then
sudo bash "$BASH_SOURCE" "$USER";
else
EFI_BOOT_DIR="${EFI_BOOT_DIR:-"/boot"}";
2023-05-06 23:20:03 +00:00
BOOTLOADER_ID=${BOOTLOADER_ID:-"Arch"};
2023-07-13 21:22:32 +00:00
pushd "${BASH_SOURCE%/*}" > /dev/null;
2023-07-13 19:12:59 +00:00
pacman --noconfirm -Syu grub efibootmgr os-prober;
2023-04-03 08:50:10 +00:00
. ../../../Common/Config/GRUB/setup.sh;
2023-07-13 21:22:32 +00:00
popd > /dev/null;
2023-04-03 08:50:10 +00:00
fi;