1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-15 09:41:31 +01:00

Fix some bug

This commit is contained in:
Kevin Puertas
2017-09-01 12:08:33 +02:00
parent 460a9f35cc
commit af6a0f88ee

View File

@@ -105,7 +105,7 @@ function particiones {
mostrardialog "ERROR" "$(T "ERROR: You dont have HDD, insert one, poweroff")" mostrardialog "ERROR" "$(T "ERROR: You dont have HDD, insert one, poweroff")"
reboot reboot
fi 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 case $optpa in
1) 1)
#Abrir gparted grafico #Abrir gparted grafico
@@ -114,7 +114,7 @@ function particiones {
2) 2)
#Terminal #Terminal
echo $(T "Select hard disk to edit") 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 lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
options=($(lsblk --output KNAME | cut -c1-3 | sort | uniq | sed '1d' | grep 'sd\|hd') "No editar" "Terminal") options=($(lsblk --output KNAME | cut -c1-3 | sort | uniq | sed '1d' | grep 'sd\|hd') "No editar" "Terminal")
select opt in "${options[@]}" select opt in "${options[@]}"
@@ -171,7 +171,7 @@ function particiones {
break;; break;;
*) *)
mostrardialog "Instalacion detenida" "Se detuvo la instalacion. No se hicieron cambios. Al aceptar, reiniciara la instalacion" mostrardialog "Instalacion detenida" "Se detuvo la instalacion. No se hicieron cambios. Al aceptar, reiniciara la instalacion"
exec ./selectlang.sh exec ./installer.sh
;; ;;
esac esac
fi;; 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" 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 fi
ram=$(free -m | grep Mem: | awk '1 {print $2 }') 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 case $optswap in
1) 1)
# This count the ammount of swap to create dependent of computer RAM # 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... # Download JKArch scripts and data...
showdo "Downloading JKArch scripts and data" "1" 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/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://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 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" showdo "Downloaded JKArch scripts and data" "2"
@@ -703,7 +702,7 @@ fi
clear clear
mostrardialog "$(T "JKArch install script")" "$(T "Intro arch install script")" 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" echo "Desmontando posibles particiones"
umount /mnt/boot/efi/ umount /mnt/boot/efi/