1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-18 03:01:32 +01:00
This commit is contained in:
kprkpr
2016-06-06 08:56:02 +02:00
parent 1bb8a31eb3
commit eed5c1fd37

View File

@@ -135,10 +135,13 @@ if [[ ! $optpa -eq 3 ]];then
tput setaf 6 ; echo "$(T "Your partition scheme")" ; tput setaf 9 tput setaf 6 ; echo "$(T "Your partition scheme")" ; tput setaf 9
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6 ; echo "$(T "Select root partition")" ; tput setaf 9 tput setaf 6 ; echo "$(T "Select root partition")" ; tput setaf 9
options=($(lsblk --output KNAME | sed '1d' | grep '${hd}' | grep '[1-9]$')) options=($(lsblk --output KNAME | sed '1d' | grep '${hd}' | grep '[1-9]$') "Salir")
select opt in "${options[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in
"Salir")
mostrardialog "Instalacion detenida" "Se ha detenido la instalacion, se apagara el ordenador"
poweroff
*) *)
if [[ -z $opt ]];then if [[ -z $opt ]];then
echo "$(T "Not valid")" echo "$(T "Not valid")"
@@ -148,8 +151,6 @@ if [[ ! $optpa -eq 3 ]];then
fi;; fi;;
esac esac
done done
pause
exit
optfr=`dialog --stdout --nocancel --menu "Formato para la particion raiz(/)" 0 0 4 1 "EXT4 (Recomendado)" 2 "BTRFS" 3 "No formatear (Si ya esta formateada)"` optfr=`dialog --stdout --nocancel --menu "Formato para la particion raiz(/)" 0 0 4 1 "EXT4 (Recomendado)" 2 "BTRFS" 3 "No formatear (Si ya esta formateada)"`
case $optfr in case $optfr in
1) 1)
@@ -168,10 +169,12 @@ if [[ ! $optpa -eq 3 ]];then
#Selección de home #Selección de home
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
tput setaf 6 ; echo "$(T "Select home partition")" ; tput setaf 9 tput setaf 6 ; echo "$(T "Select home partition")" ; tput setaf 9
options=($(lsblk --output KNAME | sed '1d' | grep '${hd}' | grep '[1-9]$')) options=($(lsblk --output KNAME | sed '1d' | grep '${hd}' | grep '[1-9]$') "No elegir")
select opt in "${options[@]}" select opt in "${options[@]}"
do do
case $opt in case $opt in
"No elegir")
break;;
*) *)
if [[ -z $opt ]];then if [[ -z $opt ]];then
echo "$(T "Not valid")" echo "$(T "Not valid")"
@@ -181,19 +184,22 @@ if [[ ! $optpa -eq 3 ]];then
fi;; fi;;
esac esac
done done
optfh=`dialog --stdout --nocancel --menu "Formato para la particion home (/home)" 0 0 4 1 "EXT4 (Recomendado)" 2 "BTRFS" 3 "XFS" 4 "No formatear (Si ya esta formateada)"` if [[ $particionhome ]];then
case $optfh in optfh=`dialog --stdout --nocancel --menu "Formato para la particion home (/home)" 0 0 4 1 "EXT4 (Recomendado)" 2 "BTRFS" 3 "XFS" 4 "No formatear (Si ya esta formateada)"`
1) case $optfh in
formatohome="mkfs.ext4 -F";; 1)
2) formatohome="mkfs.ext4 -F";;
formatohome="mkfs.btrfs -f";; 2)
3) formatohome="mkfs.btrfs -f";;
formatohome="mkfs.xfs -f";; 3)
4) formatohome="mkfs.xfs -f";;
formatohome="echo No formatear ";; 4)
esac formatohome="echo No formatear ";;
;; esac
;;
fi
esac esac
if [[ $formatoraiz -eq "mkfs.btrfs -f" ]];then if [[ $formatoraiz -eq "mkfs.btrfs -f" ]];then