mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-15 17:51:33 +01:00
changes
This commit is contained in:
@@ -107,6 +107,30 @@ do
|
||||
esac
|
||||
done
|
||||
|
||||
echo "¿Usaste EFI/UEFI/GPT o es MBR/BIOS?"
|
||||
options=("EFI/UEFI/GPT" "MBR/BIOS")
|
||||
select opt in "${options[@]}"
|
||||
do
|
||||
case $opt in
|
||||
"EFI/UEFI/GPT")
|
||||
lsblk --output NAME,KNAME,FSTYPE,SIZE,LABEL
|
||||
echo "Elige la particion EFI del sistema (Si usa windows, suele ser una particion de 300-400Mb en FAT32 llamada EFI, y suele estar en /dev/sda2"
|
||||
options=($(lsblk --output KNAME | sed '1d'| grep 'sd\|hd'))
|
||||
select opt in "${options[@]}"
|
||||
do
|
||||
case $opt in
|
||||
*) partefi=$opt;break;;
|
||||
esac
|
||||
done
|
||||
break
|
||||
;;
|
||||
"MBR/BIOS")
|
||||
break
|
||||
;;
|
||||
*) echo invalid option;;
|
||||
esac
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
function install {
|
||||
@@ -117,6 +141,10 @@ if [[ $particionhome ]];then
|
||||
$formatohome /dev/$particionhome
|
||||
mount /dev/$particionhome /mnt/home/
|
||||
fi
|
||||
if [[ $partefi ]];then
|
||||
mount /dev/$partefi /boot/efi/
|
||||
fi
|
||||
|
||||
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/pacman.conf -O /tmp/pacman.conf
|
||||
pacstrap -C /tmp/pacman.conf /mnt/ base jka-toolkit git wget netctl iw wpa_supplicant dialog
|
||||
wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/chrootinstall.sh -O /mnt/root/chrootinstall.sh
|
||||
@@ -124,7 +152,7 @@ chmod +x /mnt/root/chrootinstall.sh
|
||||
genfstab -U /mnt >> /mnt/etc/fstab
|
||||
cp /etc/netctl/* /mnt/etc/netctl/
|
||||
argpart=$(echo $particionraiz | cut -c1-3)
|
||||
arch-chroot /mnt /bin/bash -c "./root/chrootinstall.sh $argpart"
|
||||
arch-chroot /mnt /bin/bash -c "./root/chrootinstall.sh $argpart $partefi"
|
||||
}
|
||||
clear
|
||||
echo "Script de instalación simple de Arch (BETA)"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user