mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
Use target_env calls in Python modules.
This commit is contained in:
parent
bf885d65db
commit
10ce42f35c
12 changed files with 75 additions and 75 deletions
|
@ -27,7 +27,7 @@ def run():
|
|||
username = libcalamares.job.configuration["username"]
|
||||
|
||||
try:
|
||||
libcalamares.utils.check_chroot_call(["userdel", "-f", "-r", username])
|
||||
libcalamares.utils.check_target_env_call(["userdel", "-f", "-r", username])
|
||||
except subprocess.CalledProcessError as e:
|
||||
libcalamares.utils.debug("Cannot remove user.", "'userdel' terminated with exit code {}.".format(e.returncode))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue