1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-18 11:11:31 +01:00

fix pacman problem

This commit is contained in:
kprkpr
2016-09-27 23:44:59 +02:00
parent df202e043c
commit 993d72ce83

View File

@@ -40,6 +40,11 @@ if [[ $? != 0 ]];then
fatalerror "$(T "Network connection error, please check it")"
fi
}
function pacmanerror {
if [[ $? != 0 ]];then
fatalerror "$(T "Pacman error, problems in repositories, apologizes. You have to try later...")"
fi
}
function inchroot {
chroot /mnt /bin/bash -c "$*"
@@ -292,6 +297,7 @@ if [[ $isoffline = "0" ]];then
reflector --verbose -l 6 --sort rate --save /etc/pacman.d/mirrorlist
tput setaf 2 ; echo "$(T "Downloading")" ; tput setaf 9
pacstrap -C pacman.conf /mnt/ base btrfs-progs jkarch-mirrorlist
pacmanerror
mv pacman.conf /mnt/etc/pacman.conf
fi
if [[ $isoffline = "1" ]];then