diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2020-10-06 09:34:35 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2020-10-06 09:34:35 +0200 |
commit | 71c1550e14b45e74fae5d21ed578fd452f0c3bcc (patch) | |
tree | d86f8d82e7e40c4b8f4453074303ef37bcdd3363 | |
parent | 9599266b29d05b02e9c65482374949d170eb4c7b (diff) | |
download | bin-71c1550e14b45e74fae5d21ed578fd452f0c3bcc.zip bin-71c1550e14b45e74fae5d21ed578fd452f0c3bcc.tar.gz |
arch-fix-1.sh : check lib links, call mkinitcpio
-rwxr-xr-x | arch-install/arch-fix-1.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch-install/arch-fix-1.sh b/arch-install/arch-fix-1.sh index 8eea94f..1f56a40 100755 --- a/arch-install/arch-fix-1.sh +++ b/arch-install/arch-fix-1.sh @@ -1,5 +1,15 @@ #! /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 @@ -8,3 +18,4 @@ 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 |