commit: b51ceb558a282b8fdfc3952f81be037caa3d5fbe
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: Tue Jan 21 21:51:07 2025 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=b51ceb55
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>
catalyst/base/stagebase.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index b26c22ac..417b4b74 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -1372,6 +1372,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)