mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add usermanagement
This commit is contained in:
parent
0e9993aeb0
commit
4c8373b4a3
2 changed files with 2 additions and 3 deletions
|
@ -188,7 +188,6 @@ _configure_system() {
|
|||
_run_locale_gen
|
||||
elif [[ "${_FILE}" = "Basic User Configuration" ]]; then
|
||||
_user_management
|
||||
_set_password
|
||||
else
|
||||
${_EDITOR} "${_DESTDIR}""${_FILE}"
|
||||
fi
|
||||
|
|
|
@ -56,12 +56,12 @@ _check_root_password() {
|
|||
if chroot "${_DESTDIR}" passwd -S root | cut -d ' ' -f2 | grep -q NP; then
|
||||
_dialog --no-mouse --infobox "Setup detected no password set for root user,\nplease set new password now." 6 50
|
||||
sleep 3
|
||||
_set_password || return 1
|
||||
_set_password Root root || return 1
|
||||
fi
|
||||
# check if account is locked
|
||||
if chroot "${_DESTDIR}" passwd -S root | cut -d ' ' -f2 | grep -q L; then
|
||||
_dialog --no-mouse --infobox "Setup detected locked account for root user,\nplease set new password to unlock account now." 6 50
|
||||
_set_password || return 1
|
||||
_set_password Root root || return 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue