mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-23 05:23:46 +01:00
Solved bug
This commit is contained in:
@@ -820,6 +820,24 @@ fi
|
|||||||
if [[ $partefi ]];then
|
if [[ $partefi ]];then
|
||||||
echo "$(T "EFI partition in") $partefi"
|
echo "$(T "EFI partition in") $partefi"
|
||||||
fi
|
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
|
#Pregunta si instalar o no
|
||||||
tput setaf 1
|
tput setaf 1
|
||||||
echo "¿Estas de acuerdo con los cambios y quieres comenzar la instalacion?"
|
echo "¿Estas de acuerdo con los cambios y quieres comenzar la instalacion?"
|
||||||
@@ -828,11 +846,12 @@ select opt in "${options[@]}"
|
|||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
"No, volver a empezar")
|
"No, volver a empezar")
|
||||||
|
rm /tmp/install.log
|
||||||
logout
|
logout
|
||||||
exit
|
exit
|
||||||
break;;
|
break;;
|
||||||
"Si, instalar") break;;
|
"Si, instalar") break;;
|
||||||
"No editar")
|
"No, apagar el ordenador")
|
||||||
poweroff
|
poweroff
|
||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
@@ -858,14 +877,25 @@ otrasconfig
|
|||||||
echo "$(T "Last tweaks and cleaning")"
|
echo "$(T "Last tweaks and cleaning")"
|
||||||
execl chroot systemctl enable dhcpcd
|
execl chroot systemctl enable dhcpcd
|
||||||
execl chroot pacman -Sc --noconfirm
|
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?
|
if [[ $isoffline = 1 ]];then # Is an offline installation?
|
||||||
echo "Configurando pacman para usar servidores web en los siguientes arranques..."
|
echo "Configurando pacman para usar servidores web en los siguientes arranques..."
|
||||||
mv pacman.conf /mnt/etc/pacman.conf #Put online pacman.conf
|
mv pacman.conf /mnt/etc/pacman.conf #Put online pacman.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Sincronizando datos al disco duro, puede tardar unos segundos"
|
||||||
|
sync
|
||||||
|
|
||||||
|
#Unmounting partitions
|
||||||
|
umount /mnt/*
|
||||||
|
umount /mnt
|
||||||
|
#
|
||||||
|
|
||||||
clear
|
clear
|
||||||
mostrardialog "$(T "End")" "$(T "Setup finished, press enter to reboot.")"
|
mostrardialog "$(T "End")" "$(T "Setup finished, press enter to reboot.")"
|
||||||
mv /tmp/install.log /mnt/home/$nameuser/install.log
|
mv /tmp/install.log /mnt/home/$nameuser/install.log
|
||||||
|
|||||||
Reference in New Issue
Block a user