From aa52624ac17989c309725f7ba716201a6dc8bd07 Mon Sep 17 00:00:00 2001 From: kprkpr Date: Wed, 19 Oct 2016 16:02:48 +0200 Subject: [PATCH] question for install --- archinstall/archinstall.sh | 90 ++++++++++++++++++++++---------------- 1 file changed, 53 insertions(+), 37 deletions(-) diff --git a/archinstall/archinstall.sh b/archinstall/archinstall.sh index 755d7e9..4b5d1c5 100755 --- a/archinstall/archinstall.sh +++ b/archinstall/archinstall.sh @@ -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