1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-26 06:53:44 +01:00

creating offline installation posible 1/3

This commit is contained in:
kprkpr
2016-09-21 22:56:47 +02:00
parent e08559b943
commit 5ccbca3765
3 changed files with 52 additions and 12 deletions

View File

@@ -8,6 +8,13 @@ partefi=$3
sclang=$1
source translations.sh
argpart=$(echo $particionraiz | cut -c1-3)
if [[ -f /mnt/etc/pacman.conf.post ]];then # Is an offline installation?
isoffline=1
else
isoffline=0
fi
#Try to disable ctrl+C
trap '' INT
@@ -461,3 +468,10 @@ systemctl enable dhcpcd
pacman -Sc --noconfirm
echo "Sincronizando datos al disco duro, puede tardar unos segundos"
sync
if [[ -f /mnt/etc/pacman.conf.post ]];then # Is an offline installation?
echo "Configurando pacman para usar servidores web en los siguientes arranques..."
mv -f /mnt/etc/pacman.conf.post /mnt/etc/pacman.conf
fi