aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elivepatch_server/resources/livepatch.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/elivepatch_server/resources/livepatch.py b/elivepatch_server/resources/livepatch.py
index 5090bdf..8ea47e2 100644
--- a/elivepatch_server/resources/livepatch.py
+++ b/elivepatch_server/resources/livepatch.py
@@ -66,7 +66,8 @@ class PaTch(object):
if os.path.isfile(ebuild_path):
# Use a private tmpdir for portage
with tempfile.TemporaryDirectory(dir=uuid_dir) as portage_tmpdir:
- env = {'ROOT': uuid_dir, 'PORTAGE_TMPDIR': portage_tmpdir}
+ print('uuid_dir: ' + str(uuid_dir) + ' PORTAGE_TMPDIR: '+str(portage_tmpdir))
+ env = {'ROOT': uuid_dir, 'PORTAGE_CONFIGROOT':uuid_dir, 'PORTAGE_TMPDIR': portage_tmpdir}
command(['ebuild', ebuild_path, 'clean', 'merge'], env=env)
kernel_sources_status = True
else: