From 1a2e6006241ad05da5e898178fac6bb9434b4b83 Mon Sep 17 00:00:00 2001 From: Jay Faulkner Date: Thu, 12 Dec 2024 14:49:56 -0800 Subject: [PATCH] Fix: Run final Gentoo tasks in post-install.d Running this in finalise can cause failures, as the image has already been created and we have limited disk space. Change-Id: I4212ce9b47f288518dda233e4971699dd0815d01 --- .../gentoo/{finalise.d => post-install.d}/99-cleanup | 0 .../notes/gentoo-post-install-16514f6d51465c79.yaml | 6 ++++++ 2 files changed, 6 insertions(+) rename diskimage_builder/elements/gentoo/{finalise.d => post-install.d}/99-cleanup (100%) create mode 100644 releasenotes/notes/gentoo-post-install-16514f6d51465c79.yaml diff --git a/diskimage_builder/elements/gentoo/finalise.d/99-cleanup b/diskimage_builder/elements/gentoo/post-install.d/99-cleanup similarity index 100% rename from diskimage_builder/elements/gentoo/finalise.d/99-cleanup rename to diskimage_builder/elements/gentoo/post-install.d/99-cleanup diff --git a/releasenotes/notes/gentoo-post-install-16514f6d51465c79.yaml b/releasenotes/notes/gentoo-post-install-16514f6d51465c79.yaml new file mode 100644 index 000000000..b55442648 --- /dev/null +++ b/releasenotes/notes/gentoo-post-install-16514f6d51465c79.yaml @@ -0,0 +1,6 @@ +fixes: + - | + The gentoo element no longer runs finalization actions during finalise + phase; these actions now happen in post-install phase. This fixes an issue + where the final ``emerge --update @world`` would fail due to limited disk + space, due to the environment finalise steps run in.