grub boot fix pt4
This commit is contained in:
parent
9884793854
commit
52f7bd26f4
@ -46,7 +46,6 @@ prechecks () {
|
||||
|
||||
if [[ " ${MACADDRS[@]} " =~ " $DMAC " ]]; then
|
||||
echoc " - Matching MAC Address found." $GREEN
|
||||
return 1
|
||||
else
|
||||
echoc " - No Matching MAC Address found. Abort!" $RED
|
||||
return -1
|
||||
@ -57,11 +56,12 @@ prechecks () {
|
||||
|
||||
if [[ 0 -eq $pingIP ]]; then
|
||||
echoc " - Internet connectivity check failed. Abort!" $RED
|
||||
return -1
|
||||
else
|
||||
echoc " - Internet connectivity check passed." $GREEN
|
||||
fi
|
||||
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
partition () {
|
||||
@ -96,7 +96,7 @@ sysinstall () {
|
||||
|
||||
echoc " - Installing bootloader." $GREEN
|
||||
arch-chroot /mnt pacman -Sy grub
|
||||
arch-chroot /mnt grub-install --target=x86_64-efi --efi-directory=/mnt/boot --bootloader-id=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
|
||||
|
||||
#arch-chroot /mnt bootctl install
|
||||
|
Loading…
Reference in New Issue
Block a user