archinstall/modules/chroot/20-users.sh
2024-05-25 17:29:05 +02:00

9 lines
223 B
Bash

#!/bin/bash
#shellcheck disable=SC2154
shell="$(sed -n "/$shell/{p;q}" /etc/shells)"
useradd -mG wheel,video "$username" -s "${shell:-/bin/bash}"
echo "root:$rootpasswd" | chpasswd
echo "$username:$userpasswd" | chpasswd