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

question for install

This commit is contained in:
kprkpr
2016-10-19 16:02:48 +02:00
parent 027319e221
commit aa52624ac1

View File

@@ -761,46 +761,62 @@ umount /mnt/
particiones
clear
respuesta = "NO"
while [ $respuesta != FORMAT ];do
tput setaf 6
echo "$(T "Ok, last thing before start installing, summary of changes")"
echo "$(T "Partition scheme before your changes")"
tput setaf 9
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6
echo "$(T "Your changes")"
tput setaf 9
case $formatoraiz in
"mkfs.ext4 -F")
mosfraiz="$(T "ext4 formatted")";;
"mkfs.btrfs -f")
mosfraiz="$(T "btrfs formatted")";;
"mkfs.xfs -f")
mosfraiz="$(T "XFS formatted")";;
"echo No formatear ")
mosfraiz="$(T "not formatted")";;
#Resumen de los cambios
tput setaf 6
echo "$(T "Ok, last thing before start installing, summary of changes")"
echo "$(T "Partition scheme before your changes")"
tput setaf 9
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6
echo "$(T "Your changes")"
tput setaf 9
case $formatoraiz in
"mkfs.ext4 -F")
mosfraiz="$(T "ext4 formatted")";;
"mkfs.btrfs -f")
mosfraiz="$(T "btrfs formatted")";;
"mkfs.xfs -f")
mosfraiz="$(T "XFS formatted")";;
"echo No formatear ")
mosfraiz="$(T "not formatted")";;
esac
echo "$(T "Root partition"): $particionraiz , $mosfraiz"
if [[ $particionhome ]];then
case $formatohome in
"mkfs.ext4 -F")
mosfhome="$(T "ext4 formatted")";;
"mkfs.btrfs -f")
mosfhome="$(T "btrfs formatted")";;
"mkfs.xfs -f")
mosfhome="$(T "XFS formatted")";;
"echo No formatear ")
mosfhome="$(T "not formatted")";;
esac
echo "$(T "Home partition"): $particionhome , $mosfhome"
fi
if [[ $partefi ]];then
echo "$(T "EFI partition in") $partefi"
fi
#Pregunta si instalar o no
tput setaf 1
echo "¿Estas de acuerdo con los cambios y quieres comenzar la instalacion?"
options=("No, volver a empezar" "Si, instalar" "No, apagar el ordenador")
select opt in "${options[@]}"
do
case $opt in
"No, volver a empezar")
exec ./archinstall.sh
exit
break;;
"No editar")
poweroff
exit
;;
esac
echo "$(T "Root partition"): $particionraiz , $mosfraiz"
if [[ $particionhome ]];then
case $formatohome in
"mkfs.ext4 -F")
mosfhome="$(T "ext4 formatted")";;
"mkfs.btrfs -f")
mosfhome="$(T "btrfs formatted")";;
"mkfs.xfs -f")
mosfhome="$(T "XFS formatted")";;
"echo No formatear ")
mosfhome="$(T "not formatted")";;
esac
echo "$(T "Home partition"): $particionhome , $mosfhome"
fi
if [[ $partefi ]];then
echo "$(T "EFI partition in") $partefi"
fi
tput setaf 1 ; dialog --title "CONFIRMATION" --clear --inputbox "${T}; If you agree with that, write \"FORMAT\" If not write anything diferent)" 10 100; respuesta=$?; tput setaf 9
done
tput setaf 9
#Instalación
pause
baseinstall