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

Changed summary because lsblk

This commit is contained in:
Kevin Puertas
2017-05-27 12:41:12 +02:00
parent bfec508001
commit d2d376a3cf

View File

@@ -761,24 +761,23 @@ if [[ $mosfraiz != "$(T "not formatted")" ]];then
else
echo "Root partition $particionraiz not formatted" >> "/tmp/install.log"
fi
tamraiz=`lsblk /dev/$particionraiz --noheadings --output SIZE`
if [[ $particionhome ]];then
if [[ $mosfhome != "$(T "not formatted")" ]];then
echo "Format $mosfhome the partiton $particionhome for /home" >> "/tmp/install.log"
else
echo "Home partition $particionhome not formatted" >> "/tmp/install.log"
fi
tamhome=`lsblk /dev/$particionhome --noheadings --output SIZE`
fi
#
#For do output in multiline, lsblk has to be in a var for echoing with " "
lsblkout=`lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL`
# Make the question
dialog --nocancel --stdout --yes-label "Si, instalar" --no-label "No, volver a empezar" --yesno "$(T "Ok, last thing before start installing, summary of changes")\n \
$(T "Partition scheme before your changes") \n \
echo \"`lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL`\" \n \
$(T "Your changes") \n \
$(T "Root partition"): $particionraiz , $mosfraiz \n \
$(T "Home partition"): $particionhome , $mosfhome \n \
$(T "Root partition"): $particionraiz, de $tamraiz , $mosfraiz \n \
$(if [[ $particionhome ]];then echo $(T "Home partition"): $particionhome, de $tamhome, $mosfhome;fi) \n \
$(if [[ $partefi ]];then echo $(T "EFI partition in") $partefi;fi) \n \
¿Estas de acuerdo con los cambios y quieres comenzar la instalacion?" 0 0