mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-19 19:51:32 +01:00
changes
This commit is contained in:
@@ -107,6 +107,30 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
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 {
|
function install {
|
||||||
@@ -117,6 +141,10 @@ if [[ $particionhome ]];then
|
|||||||
$formatohome /dev/$particionhome
|
$formatohome /dev/$particionhome
|
||||||
mount /dev/$particionhome /mnt/home/
|
mount /dev/$particionhome /mnt/home/
|
||||||
fi
|
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
|
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
|
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
|
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
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
cp /etc/netctl/* /mnt/etc/netctl/
|
cp /etc/netctl/* /mnt/etc/netctl/
|
||||||
argpart=$(echo $particionraiz | cut -c1-3)
|
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
|
clear
|
||||||
echo "Script de instalación simple de Arch (BETA)"
|
echo "Script de instalación simple de Arch (BETA)"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#Este script corre en el chroot para configurar todo
|
#Este script corre en el chroot para configurar todo
|
||||||
argpart=$1
|
argpart=$1
|
||||||
|
partefi=$2
|
||||||
function horaidioma {
|
function horaidioma {
|
||||||
#Idioma
|
#Idioma
|
||||||
echo "Escoja su idioma. Se irá desde la abreviatura general, a la particular"
|
echo "Escoja su idioma. Se irá desde la abreviatura general, a la particular"
|
||||||
@@ -126,25 +126,24 @@ fi
|
|||||||
|
|
||||||
function bootinstall {
|
function bootinstall {
|
||||||
clear
|
clear
|
||||||
echo "Instalando bootloader"
|
echo "¿Instalar bootloader?"
|
||||||
echo "¿Usas EFI o tu esquema de particiones es GPT/UEFI?"
|
options=("Si" "No, no instalar gestor de arranque")
|
||||||
echo "(Recuerda como lo hiciste al comenzar la instalación)"
|
|
||||||
options=("EFI/UEFI/GPT" "MBR/BIOS" "No instalar boot")
|
|
||||||
select opt in "${options[@]}"
|
select opt in "${options[@]}"
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
"EFI/UEFI/GPT")
|
"Si")
|
||||||
echo "Instalando grub modo EFI"
|
if [[ -z $partefi ]];then
|
||||||
break
|
pacman -S grub os-prober efibootmgr --noconfirm
|
||||||
;;
|
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub_uefi --recheck
|
||||||
"MBR/BIOS")
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
echo "Instalando grub en modo normal"
|
else
|
||||||
pacman -S grub os-prober --noconfirm
|
pacman -S grub os-prober --noconfirm
|
||||||
grub-install --target=i386-pc /dev/$argpart
|
grub-install --target=i386-pc /dev/$argpart
|
||||||
grub-mkconfig -o /boot/grub/grub.cfg
|
grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
break
|
fi
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
"No instalar boot")
|
"No, no instalar gestor de arranque")
|
||||||
#Asi no formateará
|
#Asi no formateará
|
||||||
echo "No se ha instalado ningún gestor de arranque nuevo"
|
echo "No se ha instalado ningún gestor de arranque nuevo"
|
||||||
break
|
break
|
||||||
@@ -152,7 +151,6 @@ do
|
|||||||
*) echo invalid option;;
|
*) echo invalid option;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Configuración de su sistema"
|
echo "Configuración de su sistema"
|
||||||
|
|||||||
Reference in New Issue
Block a user