summaryrefslogtreecommitdiff
path: root/ci/ciimage
diff options
context:
space:
mode:
Diffstat (limited to 'ci/ciimage')
-rwxr-xr-xci/ciimage/build.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/ci/ciimage/build.py b/ci/ciimage/build.py
index 10fd09905..b355c47a7 100755
--- a/ci/ciimage/build.py
+++ b/ci/ciimage/build.py
@@ -78,12 +78,13 @@ class Builder(BuilderBase):
if [ -f "$HOME/.cargo/env" ]; then
source "$HOME/.cargo/env"
fi
-
- if [ -f /etc/profile.env ]; then
- source /etc/profile.env
- fi
'''
+ if self.data_dir.name == 'gentoo':
+ out_data += '''
+ source /etc/profile
+ '''
+
out_file.write_text(out_data, encoding='utf-8')
# make it executable