grub boot fix, DID THE KERNEL EVEN INSTALL?

This commit is contained in:
Thomas Cole 2021-06-30 12:08:17 -04:00
parent 6ff3f2fd86
commit 4dce1c800b

View File

@ -70,7 +70,7 @@ partition () {
echoc " - Formatting disk..." $GREEN
#DANGER ZONE
parted --script $DISK -- mklabel gpt mkpart ESP fat32 1Mib 129MiB set 1 boot on mkpart primary ext4 129MiB 100%
parted --script $DISK -- mklabel gpt mkpart ESP fat32 1Mib 500MiB set 1 boot on mkpart primary ext4 500MiB 100%
wipefs ${DISK}1
wipefs ${DISK}2
@ -89,13 +89,14 @@ partition () {
sysinstall () {
echoc " - Updating mirror list. This might take a while." $YELLOW
reflector --protocol https --sort rate --country 'United States' --save /etc/pacman.d/mirrorlist --verbose
#reflector --protocol https --sort rate --country 'United States' --save /etc/pacman.d/mirrorlist --verbose
echoc " - Installing system." $GREEN
pacstrap /mnt
pacstrap /mnt base base-devel linux linux-firmware nano
echoc " - Installing bootloader." $GREEN
arch-chroot /mnt pacman -Syy grub efibootmgr
arch-chroot /mnt pacman -Syy grub efibootmgr os-prober
echo "GRUB_DISABLE_OS_PROBER=false" > /mnt/etc/default/grub
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
arch-chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg