1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-06-14 12:26:10 +02:00
This commit is contained in:
kprkpr
2016-05-31 14:22:13 +02:00
parent 58ab4c2cc4
commit 88d5ce3cf2
2 changed files with 23 additions and 1 deletions
+11
View File
@@ -11,7 +11,12 @@ local msgd
titled=$1
msgd=$2
dialog --title "$titled" --msgbox "$msgd" 15 60
}
function fatalerror {
razon=$1
mostrardialog "Error fatal" "Ha occurrido un error fatal, la instalacion se va a detener \n Razon: $razon"
exit
}
function particiones {
@@ -161,8 +166,14 @@ mount /dev/$partefi /mnt/boot/efi/
fi
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/pacman.conf -O /tmp/pacman.conf
if [[ $? != 0 ]];then
fatalerror "Error de conexion con internet, compruebe la red"
fi
pacstrap -C /tmp/pacman.conf /mnt/ base
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/chrootinstall.sh -O /mnt/root/chrootinstall.sh
if [[ $? != 0 ]];then
fatalerror "Error de conexion con internet, compruebe la red"
fi
chmod +x /mnt/root/chrootinstall.sh
genfstab -U /mnt >> /mnt/etc/fstab
cp /etc/netctl/* /mnt/etc/netctl/