Skip to content

Commit c0e5148

Browse files
committed
[component] Fix regression 57bbc89 in toolbox containers
57bbc89 commit set tmpdir to source the dir from Policy. Which means HOST sysroot directory is newly applied already in LinuxPolicy._container_init method. Removed lines mimic the same in a worse way, so let drop them here. Resolves: #4116 Closes: #4118 Signed-off-by: Pavel Moravec <[email protected]>
1 parent 6615f49 commit c0e5148

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sos/component.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ def get_tmpdir_default(self):
170170
else:
171171
tmpdir = os.getenv('TMPDIR', None) or self.policy.get_tmp_dir(None)
172172

173-
if os.getenv('HOST', None) and os.getenv('container', None):
174-
tmpdir = os.path.join(os.getenv('HOST'), tmpdir.lstrip('/'))
175-
176173
# no standard library method exists for this, so call out to stat to
177174
# avoid bringing in a dependency on psutil
178175
self.tmpfstype = shell_out(

0 commit comments

Comments
 (0)