mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-18 19:21:32 +01:00
fix pacman problem
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user