Use target_env calls in Python modules.

This commit is contained in:
Teo Mrnjavac 2015-08-06 12:13:21 +02:00
parent bf885d65db
commit 10ce42f35c
12 changed files with 75 additions and 75 deletions

View file

@ -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))