MCPcopy Create free account
hub / github.com/archlinux/archinstall / user_set_shell

Method user_set_shell

archinstall/lib/installer.py:2010–2019  ·  view source on GitHub ↗
(self, user: str, shell: str)

Source from the content-addressed store, hash-verified

2008 return False
2009
2010 def user_set_shell(self, user: str, shell: str) -> bool:
2011 info(f'Setting shell for {user} to {shell}')
2012
2013 cmd = self._chroot_argv('chsh', '-s', shell, user)
2014 try:
2015 run(cmd)
2016 return True
2017 except CalledProcessError as err:
2018 debug(f'Error setting user shell: {err}')
2019 return False
2020
2021 def chown(self, owner: str, path: str, options: list[str] | None = None) -> bool:
2022 options = options or []

Callers

nothing calls this directly

Calls 4

_chroot_argvMethod · 0.95
infoFunction · 0.90
runFunction · 0.90
debugFunction · 0.90

Tested by

no test coverage detected