diff --git a/repos/system_upgrade/common/libraries/mounting.py b/repos/system_upgrade/common/libraries/mounting.py index a546e9d006..2eb19d315f 100644 --- a/repos/system_upgrade/common/libraries/mounting.py +++ b/repos/system_upgrade/common/libraries/mounting.py @@ -5,7 +5,7 @@ from collections import namedtuple from leapp.libraries.common.config import get_all_envs -from leapp.libraries.common.config.version import get_source_major_version +from leapp.libraries.common.config.version import get_source_major_version, matches_source_version from leapp.libraries.stdlib import api, CalledProcessError, run # Using ALWAYS_BIND will crash the upgrade process if the file does not exist. @@ -88,6 +88,9 @@ def make_command(self, cmd): # in such a case, just add line into the previous solution.. # TODO: the same about --capability=all final_cmd += ['--keep-unit', '--capability=all'] + if matches_source_version('>= 9.0'): + # Disable pseudo-TTY in container + final_cmd += ['--pipe'] return final_cmd + ['-D', self.target] + binds + setenvs + cmd class CHROOT(_Implementation):