commit: 35e6088eda0c2c8197c16382f3ba29a69eea60ec
Author: Doug Freed <dwfreed <AT> mtu <DOT> edu>
AuthorDate: Tue Jul 30 01:08:02 2024 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue Jul 30 11:06:05 2024 +0000
URL: https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=35e6088e
stagebase: create profile link for ROOT too
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
catalyst/base/stagebase.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py
index df2da7ef..ad7cd12e 100644
--- a/catalyst/base/stagebase.py
+++ b/catalyst/base/stagebase.py
@@ -883,6 +883,17 @@ class StageBase(TargetBase, ClearBase, GenBase):
make_profile.symlink_to(os.path.relpath(chroot_profile_path,
chroot_port_conf),
target_is_directory=True)
+ if self.settings['root_path'] != '/':
+ log.info('Configuring ROOT profile link...')
+
+ # stage_path is chroot_path + root_path
+ root_port_conf = Path(self.settings['stage_path'] +
self.settings['port_conf'])
+ root_make_profile = root_port_conf / 'make.profile'
+ root_make_profile.unlink(missing_ok=True)
+
+ root_make_profile.symlink_to(os.path.relpath(chroot_profile_path,
root_port_conf),
+ target_is_directory=True)
+
def setup_confdir(self):
if "autoresume" in self.settings["options"] \
and self.resume.is_enabled("setup_confdir"):