From e3ff2eb1cf18b2c7dc67c548ed12820d377481ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Fri, 21 Aug 2026 10:44:42 -0300 Subject: [PATCH] fix(genesis): isolate OpenEmbedded tmpdir --- genesis-openembedded/build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/genesis-openembedded/build b/genesis-openembedded/build index 663827b..342fdea 100755 --- a/genesis-openembedded/build +++ b/genesis-openembedded/build @@ -84,9 +84,14 @@ die "Output already exists: $output_dir\n" if -e $output_dir || -l $output_dir; my $work = tempdir('xcat-genesis-release.XXXXXX', TMPDIR => 1, CLEANUP => 1); my $staging = tempdir('.xcat-genesis-release.XXXXXX', DIR => $output_parent, CLEANUP => 1); my $oe_work = "$work/openembedded"; +my $oe_tmp = "$oe_work/build/tmp"; local $ENV{XCAT_GENESIS_WORK_DIR} = $oe_work; -_run("$xcat_source/xCAT-genesis-builder/oe/build", @requested_architectures); -my $effective_deploy = "$oe_work/build/tmp/deploy"; +{ + local $ENV{TMPDIR} = $oe_tmp; + make_path($oe_tmp); + _run("$xcat_source/xCAT-genesis-builder/oe/build", @requested_architectures); +} +my $effective_deploy = "$oe_tmp/deploy"; die "Invalid OpenEmbedded deploy directory: $effective_deploy\n" unless -d $effective_deploy && !-l $effective_deploy;