mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-18 19:21:32 +01:00
changes
This commit is contained in:
@@ -389,10 +389,10 @@ if [[ -z $partefi ]];then
|
|||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
#Si usa EFI, preguntar por instalar rEFInd
|
#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"`
|
optboot=`dialog --stdout --nocancel --menu "¿Instalar bootloader/gestor de arranque?" 0 0 4 1 "Si (rEFInd) (Recomendado)" 2 "Si (GRUB) (Suele fallar, no hay soporte si falla)" 3 "No, no instalar gestor de arranque"`
|
||||||
case $optboot in
|
case $optboot in
|
||||||
1)
|
1)
|
||||||
echo "Instalando rEFInd para GPT/UEFI"
|
echo "Instalando rEFInd para UEFI"
|
||||||
echo "AVISO, UEFI ES EXPERMIENTAL"
|
echo "AVISO, UEFI ES EXPERMIENTAL"
|
||||||
pacman -S efibootmgr dosfstools refind-efi --noconfirm
|
pacman -S efibootmgr dosfstools refind-efi --noconfirm
|
||||||
refind-install
|
refind-install
|
||||||
@@ -402,6 +402,13 @@ else
|
|||||||
echo "Boot with minimal options" "root=UUID='$(echo $rootuuid)'" >> /boot/refind_linux.conf
|
echo "Boot with minimal options" "root=UUID='$(echo $rootuuid)'" >> /boot/refind_linux.conf
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
|
echo "Instalando GRUB en modo UEFI, normalmente falla"
|
||||||
|
pacman -S grub os-prober --noconfirm
|
||||||
|
sed -i 's/\GRUB_CMDLINE_LINUX_DEFAULT="quiet"/GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 vga=current"/g' /etc/default/grub
|
||||||
|
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
|
||||||
|
3)
|
||||||
#No hará nada
|
#No hará nada
|
||||||
echo "No se ha instalado ningún gestor de arranque en el sistema"
|
echo "No se ha instalado ningún gestor de arranque en el sistema"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user