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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user