diff --git a/archinstall/archinstall.sh b/archinstall/archinstall.sh index 277aa54..a9ff00a 100755 --- a/archinstall/archinstall.sh +++ b/archinstall/archinstall.sh @@ -820,6 +820,24 @@ fi if [[ $partefi ]];then echo "$(T "EFI partition in") $partefi" fi +#Log options +echo "------" >> "/tmp/install.log" +echo "Install partition options" >> "/tmp/install.log" +if [[ $mosfraiz != "$(T "not formatted")" ]];then + echo "Format $mosfraiz the partiton $particionraiz for root" >> "/tmp/install.log" +else + echo "Root partition $particionraiz not formatted" >> "/tmp/install.log" +fi +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 +fi + +# + #Pregunta si instalar o no tput setaf 1 echo "¿Estas de acuerdo con los cambios y quieres comenzar la instalacion?" @@ -828,11 +846,12 @@ select opt in "${options[@]}" do case $opt in "No, volver a empezar") + rm /tmp/install.log logout exit break;; "Si, instalar") break;; - "No editar") + "No, apagar el ordenador") poweroff exit ;; @@ -858,14 +877,25 @@ otrasconfig echo "$(T "Last tweaks and cleaning")" execl chroot systemctl enable dhcpcd execl chroot pacman -Sc --noconfirm -echo "Sincronizando datos al disco duro, puede tardar unos segundos" -sync + +#For some strange login bugs +execl chroot chmod 755 / +execl chroot chmod 755 /bin +# if [[ $isoffline = 1 ]];then # Is an offline installation? echo "Configurando pacman para usar servidores web en los siguientes arranques..." mv pacman.conf /mnt/etc/pacman.conf #Put online pacman.conf fi +echo "Sincronizando datos al disco duro, puede tardar unos segundos" +sync + +#Unmounting partitions +umount /mnt/* +umount /mnt +# + clear mostrardialog "$(T "End")" "$(T "Setup finished, press enter to reboot.")" mv /tmp/install.log /mnt/home/$nameuser/install.log