1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-21 04:23:44 +01:00
This commit is contained in:
kprkpr
2016-05-30 10:59:11 +02:00
parent fd4839a415
commit 03cb3e0ef7
2 changed files with 41 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
#Este script corre en el chroot para configurar todo
argpart=$1
partefi=$2
function horaidioma {
#Idioma
echo "Escoja su idioma. Se irá desde la abreviatura general, a la particular"
@@ -126,25 +126,24 @@ fi
function bootinstall {
clear
echo "Instalando bootloader"
echo "¿Usas EFI o tu esquema de particiones es GPT/UEFI?"
echo "(Recuerda como lo hiciste al comenzar la instalación)"
options=("EFI/UEFI/GPT" "MBR/BIOS" "No instalar boot")
echo "¿Instalar bootloader?"
options=("Si" "No, no instalar gestor de arranque")
select opt in "${options[@]}"
do
case $opt in
"EFI/UEFI/GPT")
echo "Instalando grub modo EFI"
break
;;
"MBR/BIOS")
echo "Instalando grub en modo normal"
"Si")
if [[ -z $partefi ]];then
pacman -S grub os-prober efibootmgr --noconfirm
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/grub/grub.cfg
else
pacman -S grub os-prober --noconfirm
grub-install --target=i386-pc /dev/$argpart
grub-mkconfig -o /boot/grub/grub.cfg
break
fi
break
;;
"No instalar boot")
"No, no instalar gestor de arranque")
#Asi no formateará
echo "No se ha instalado ningún gestor de arranque nuevo"
break
@@ -152,7 +151,6 @@ do
*) echo invalid option;;
esac
done
}
echo "Configuración de su sistema"