summaryrefslogtreecommitdiffstats
path: root/arch-install/arch-fix-1.sh
blob: 1f56a405b191cb56718c08c6b7fcd76a1027186c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/bash

echo "LINKS"
for l in /lib /lib64 /usr/lib64
do
    if [ "$(readlink -f $l)" != "/usr/lib" ]
    then
        echo "must manually fix : $l     (ln -s /usr/lib $l)"
        exit 1
    fi
done

echo "PACMAN"
pacman-db-upgrade
pacman -Syu
pacman -S --noconfirm grub efibootmgr mkinitcpio linux linux-firmware

echo "GRUB"
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/grub/grub.cfg
mkinitcpio -p linux