Change passwd in chroot, not on ISO

This commit is contained in:
maride 2017-08-07 16:25:59 +02:00
parent 3449b6e1a7
commit b184028c2b

View File

@ -6,9 +6,9 @@ read answer
if [ "$answer" == "n" ]; then
exit 0
else
echo -n " Name of your new user?"
echo -n " Name of your new user? "
read name
arch-chroot /mnt useradd -m $name
passwd $name
arch-chroot /mnt passwd $name
exit 0
fi