diff --git a/iocage_lib/iocage.py b/iocage_lib/iocage.py index 86c92136..f52c7d7e 100644 --- a/iocage_lib/iocage.py +++ b/iocage_lib/iocage.py @@ -910,13 +910,14 @@ def exec( raise e return - if interactive: + if interactive or pkg: ioc_exec.InteractiveExec( command, path, uuid=uuid, host_user=host_user, jail_user=jail_user, + unjailed=pkg, skip=True ) return @@ -928,7 +929,7 @@ def exec( uuid=uuid, host_user=host_user, jail_user=jail_user, - unjailed=pkg, + unjailed=unjailed, su_env=su_env ) as _exec: output = ioc_common.consume_and_log(