From 23b92c51d92c5dc7710ae1b587d107b25dcbc143 Mon Sep 17 00:00:00 2001 From: kprkpr Date: Sun, 29 May 2016 21:05:15 +0200 Subject: [PATCH] changes --- archinstall/archinstall.sh | 4 +++- archinstall/chrootinstall.sh | 19 +++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/archinstall/archinstall.sh b/archinstall/archinstall.sh index 15c70de..9df02d4 100755 --- a/archinstall/archinstall.sh +++ b/archinstall/archinstall.sh @@ -59,7 +59,9 @@ wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/pacman.conf -O mount /dev/$particionraiz /mnt/ pacstrap -C /tmp/pacman.conf /mnt/ base jka-toolkit git wget netctl wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/chrootinstall.sh -O /mnt/tmp/chrootinstall.sh - +genfstab -U /mnt >> /mnt/etc/fstab +cp /etc/netctl/* /mnt/etc/netctl/ +arch-chroot /mnt /bin/bash /tmp/chrootinstall.sh } echo "Script de instalación simple de Arch (BETA)" diff --git a/archinstall/chrootinstall.sh b/archinstall/chrootinstall.sh index 7f4c591..fd75a98 100755 --- a/archinstall/chrootinstall.sh +++ b/archinstall/chrootinstall.sh @@ -20,13 +20,28 @@ do esac done +langinst=$(cat /etc/locale.gen | grep -m1 '^#'$opclang) + +echo $langinst >> /etc/locale.gen +locale-gen echo "Ahora seleccione su ubicación/país para ajustar el reloj" NEW_TIMEZONE=$(tzselect) test -n "$NEW_TIMEZONE" && cp -fp /usr/share/zoneinfo/"$NEW_TIMEZONE" /etc/localtime +hwclock --systohc --utc } function userpass { #Aqui hay que añadir los comandos para crear un usuario, aunque esto correrá dentro del chroot y no aqui -echo "Sin hacer" -} \ No newline at end of file +echo "Contraseña para el usuario root" +passwd root +echo "Creemos un nuevo usuario, tu usuario" +echo "Nombre" +read nameuser + +} + +echo "Configuración de su sistema" + +horaidioma +userpass \ No newline at end of file