Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorDylan M. Taylor <dylan@dylanmtaylor.com>2021-04-12 16:06:50 -0400
committerGitHub <noreply@github.com>2021-04-12 16:06:50 -0400
commitf6d6e0328eb95a29ebbc0f4a6f596831aed28227 (patch)
tree2b9671e8339ffc1df398ef7a03b1556a7b0d3c72 /archinstall
parente4b2742192ebaf5654a601e2181bee04422be823 (diff)
Implement function to set the shell for a user (#291)
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/installer.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 7aa64816..f21287c3 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -443,6 +443,12 @@ class Installer():
o = b''.join(sys_command(f"/usr/bin/arch-chroot {self.target} sh -c \"echo '{user}:{password}' | chpasswd\""))
pass
+
+ def user_set_shell(self, user, shell):
+ self.log(f'Setting shell for {user} to {shell}', level=LOG_LEVELS.Info)
+
+ o = b''.join(sys_command(f"/usr/bin/arch-chroot {self.target} sh -c \"chsh -s {shell} {user}\""))
+ pass
def set_keyboard_language(self, language):
if len(language.strip()):