1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-19 11:41:31 +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

@@ -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)"