mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-19 03:31:32 +01:00
changes
This commit is contained in:
@@ -369,30 +369,39 @@ systemctl enable splashscreen
|
||||
|
||||
clear
|
||||
|
||||
if [[ -z $partefi ]];then
|
||||
#Si no usa EFI, preguntar por instalar GRUB
|
||||
optboot=`dialog --stdout --nocancel --menu "¿Instalar bootloader/gestor de arranque?" 0 0 4 1 "Si (GRUB)" 2 "No, no instalar gestor de arranque"`
|
||||
|
||||
case $optboot in
|
||||
1)
|
||||
pacman -S grub os-prober --noconfirm
|
||||
#Arranque silencioso
|
||||
sed -i 's/\GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 vga=current"/g' /etc/default/grub
|
||||
if [[ -z $partefi ]];then
|
||||
echo "Instalando GRUB para BIOS/MBR"
|
||||
grub-install --target=i386-pc /dev/$argpart
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
else
|
||||
echo "Instalando GRUB para GPT/UEFI"
|
||||
echo "AVISO, GPT/UEFI ES EXPERMIENTAL, FALTA PROBARLO MAS, PUEDES QUEDARTE SIN ARRANQUE"
|
||||
pacman -S efibootmgr dosfstools --noconfirm
|
||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
fi
|
||||
;;
|
||||
2)
|
||||
#Asi no formateará
|
||||
#No hará nada
|
||||
echo "No se ha instalado ningún gestor de arranque en el sistema"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
#Si usa EFI, preguntar por instalar rEFInd
|
||||
optboot=`dialog --stdout --nocancel --menu "¿Instalar bootloader/gestor de arranque?" 0 0 4 1 "Si (rEFInd)" 2 "No, no instalar gestor de arranque"`
|
||||
case $optboot in
|
||||
1)
|
||||
echo "Instalando rEFInd para GPT/UEFI"
|
||||
echo "AVISO, UEFI ES EXPERMIENTAL"
|
||||
pacman -S efibootmgr dosfstools refind-efi --noconfirm
|
||||
refind-install
|
||||
;;
|
||||
2)
|
||||
#No hará nada
|
||||
echo "No se ha instalado ningún gestor de arranque en el sistema"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
echo "$(T "System configuration")"
|
||||
|
||||
Reference in New Issue
Block a user