Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-13 07:07:31 +0000
committerGitHub <noreply@github.com>2021-04-13 07:07:31 +0000
commit47dbda144282c2dd6ec6c8f319a37ebfc6a729b6 (patch)
tree2b9671e8339ffc1df398ef7a03b1556a7b0d3c72
parente4b2742192ebaf5654a601e2181bee04422be823 (diff)
parentf6d6e0328eb95a29ebbc0f4a6f596831aed28227 (diff)
Merge pull request #298 from dylanmtaylor/patch-5
Implement function to set the shell for a user (#291)
-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()):