commit: bfe2914f3df01f111030287c7e34afadd99ac313
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 21 21:46:50 2025 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu Oct 23 22:17:59 2025 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=bfe2914f
Ensure that the repo_base directory is owned by portage:portage
This allows emerge to use usersync from the start
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
(cherry picked from commit b51ceb558a282b8fdfc3952f81be037caa3d5fbe)
catalyst/base/stagebase.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index 8a3d2af6..c0b0cac6 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1357,6 +1357,11 @@ class StageBase(TargetBase, ClearBase, GenBase):
chroot_location = self.to_chroot(location)
clear_path(str(chroot_location))
+ # Ensure that the repo dir and all its contents are owned by portage
+ if
os.path.exists(self.settings['stage_path']+self.settings['repo_basedir']):
+ cmd(['chown', '-R', 'portage:portage',
+ self.settings['stage_path']+self.settings['repo_basedir'])
+
if "sticky-config" not in self.settings["options"]:
# re-write the make.conf to be sure it is clean
self.write_make_conf(setup=False)