1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-20 12:11:30 +01:00
This commit is contained in:
kprkpr
2016-05-29 23:32:27 +02:00
parent f70cc3306b
commit 4a98388309
2 changed files with 7 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ wget https://gitlab.com/JKANetwork/JKArch/raw/master/archinstall/chrootinstall.s
chmod +x /mnt/root/chrootinstall.sh 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
} }

View File

@@ -37,11 +37,14 @@ hwclock --systohc --utc
function userpass { function userpass {
#Aqui hay que añadir los comandos para crear un usuario, aunque esto correrá dentro del chroot y no aqui #Aqui hay que añadir los comandos para crear un usuario, aunque esto correrá dentro del chroot y no aqui
echo "Contraseña para el usuario root" echo "Para seguridad, vamos a cambiar la contraseña de root"
echo "Contraseña para el usuario root:"
passwd root passwd root
echo "Creemos un nuevo usuario, tu usuario" echo "Ahora crearemos tu usuario:"
echo "Nombre" echo "Nombre:"
read nameuser read nameuser
useradd -m -G wheel -s /bin/bash $nameuser
passwd $nameuser
} }
function bootinstall { function bootinstall {