mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-14 17:21:32 +01:00
Fix some bug
This commit is contained in:
@@ -105,7 +105,7 @@ function particiones {
|
||||
mostrardialog "ERROR" "$(T "ERROR: You dont have HDD, insert one, poweroff")"
|
||||
reboot
|
||||
fi
|
||||
optpa=`dialog --stdout --nocancel --menu "$(T "¿Do you want to edit partitions?¿How?")" 0 0 5 1 "Grafico con Gparted (Recomendado)" 2 "Terminal (Pequeño asistente o por tu cuenta)" 3 "Borrar un disco duro e instalar JKArch en el (usar con cuidado!)" 4 "No editar nada"`
|
||||
optpa=`dialog --stdout --nocancel --menu "$(T "¿Do you want to edit partitions?¿How?")" 0 0 5 1 "Grafico con Gparted (Recomendado)" 2 "Terminal (Avanzado. Con cfdisk o por tu cuenta)" 3 "Borrar un disco duro e instalar JKArch en el (Usar con cuidado!)" 4 "No editar nada"`
|
||||
case $optpa in
|
||||
1)
|
||||
#Abrir gparted grafico
|
||||
@@ -114,7 +114,7 @@ function particiones {
|
||||
2)
|
||||
#Terminal
|
||||
echo $(T "Select hard disk to edit")
|
||||
echo "Aviso, el soporte a GPT no es del 100%, si no vas a instalar mas SO y tu HDD no tiene mas de 2Tb, elija MBR/DOS"
|
||||
echo "Aviso, si no tienes más Sistemas Operativos, tu hdd es de menos de 2Tb y tienes que particionar desde cero, elija MBR/DOS en vez de GPT"
|
||||
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
|
||||
options=($(lsblk --output KNAME | cut -c1-3 | sort | uniq | sed '1d' | grep 'sd\|hd') "No editar" "Terminal")
|
||||
select opt in "${options[@]}"
|
||||
@@ -171,7 +171,7 @@ function particiones {
|
||||
break;;
|
||||
*)
|
||||
mostrardialog "Instalacion detenida" "Se detuvo la instalacion. No se hicieron cambios. Al aceptar, reiniciara la instalacion"
|
||||
exec ./selectlang.sh
|
||||
exec ./installer.sh
|
||||
;;
|
||||
esac
|
||||
fi;;
|
||||
@@ -257,7 +257,7 @@ function particiones {
|
||||
mostrardialog "No swapfile" "Es contraproducente hacer un fichero swap en una particion btrfs, no debes hacerlo, pero si antes creaste una particion swap, se puede utilizar"
|
||||
fi
|
||||
ram=$(free -m | grep Mem: | awk '1 {print $2 }')
|
||||
optswap=`dialog --stdout --nocancel --menu "¿Quieres crear un archivo swap (Memoria virtual)?" 0 0 4 1 "Si (Con valores por defecto, recomendado)" 2 "Si (Valores a mano)" 3 "Si, pero con una particion que ya cree" 4 "No"`
|
||||
optswap=`dialog --stdout --nocancel --menu "¿Quieres crear un archivo swap (Memoria virtual)?" 0 0 4 1 "Si (Valores automáticos, recomendado)" 2 "Si (Valores a mano)" 3 "Si, en una particion que ya cree" 4 "No"`
|
||||
case $optswap in
|
||||
1)
|
||||
# This count the ammount of swap to create dependent of computer RAM
|
||||
@@ -629,7 +629,6 @@ if [[ ! -f "jkarch" ]];then
|
||||
# Download JKArch scripts and data...
|
||||
showdo "Downloading JKArch scripts and data" "1"
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/installer/translations.sh -O /root/translations.sh ; isanetworkerror
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/installer/skeluser.tar.xz -O /root/skeluser.tar.xz ; isanetworkerror
|
||||
wget -nv https://gitlab.com/JKANetwork/JKArch/raw/master/installer/pacman.conf -O /root/pacman.conf ; isanetworkerror
|
||||
wget -nv https://mirror.jkanetwork.com/Arch-repository/jkarch-mirrorlist -O /etc/pacman.d/jkarch-mirrorlist ; isanetworkerror #Goes to live image for download better base things
|
||||
showdo "Downloaded JKArch scripts and data" "2"
|
||||
@@ -703,7 +702,7 @@ fi
|
||||
clear
|
||||
mostrardialog "$(T "JKArch install script")" "$(T "Intro arch install script")"
|
||||
|
||||
mostrardialog "JKArch" "El script esta en estado beta y puede haber fallos. En caso de fallo, vuelva a probar en unas horas o con la versión offline.\nTambien podeis mandarnos un correo a contacto@jkanetwork.com y usar el log guardado en /tmp"
|
||||
mostrardialog "JKArch" "El script esta en estado beta y puede haber fallos. En caso de fallo, vuelva a probar en unas horas.\nTambien podeis mandarnos un correo a contacto@jkanetwork.com y usar el log guardado en /tmp, describiendo que sucedio"
|
||||
|
||||
echo "Desmontando posibles particiones"
|
||||
umount /mnt/boot/efi/
|
||||
|
||||
Reference in New Issue
Block a user