From 8ce3c337f024a9ce7430993f3c150ab456996e4a Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sat, 1 Jun 2024 12:58:22 +0200 Subject: [PATCH] add usermanagement --- usr/lib/archboot/installer/configuration.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/lib/archboot/installer/configuration.sh b/usr/lib/archboot/installer/configuration.sh index 754df5ce2..8b497fed4 100644 --- a/usr/lib/archboot/installer/configuration.sh +++ b/usr/lib/archboot/installer/configuration.sh @@ -109,6 +109,7 @@ _user_management() { _dialog --title " Default Shell " --no-cancel --menu "" 8 45 2 \ "BASH" "Standard Shell" \ "ZSH" "More features for experts" 2>"${_ANSWER}" || return 1 + _SHELL="" case $(cat "${_ANSWER}") in "BASH") _SHELL="bash" if ! [[ -f "${_DESTDIR}/usr/share/bash-completion/completions/arch" ]]; then @@ -127,7 +128,7 @@ _user_management() { esac if chroot "${_DESTDIR}" chsh -l | grep -q "/usr/bin/${_SHELL}"; then # change root shell - chroot "${_DESTDIR}" chsh -s "/usr/bin/${_SHELL}" root + chroot "${_DESTDIR}" chsh -s "/usr/bin/${_SHELL}" root &>"${_LOG}" # change default shell sed -i -e "s#^SHELL=.*#SHELL=/usr/bin/${_SHELL}#g" "${_DESTDIR}"/etc/default/useradd fi