Move init.sh to /etc/profile.d

This commit is contained in:
Qingsong Chen 2025-07-22 03:14:14 +00:00 committed by Tate, Hongliang Tian
parent 171b9803ad
commit 3eeee67cc4
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# FIXME: Mounting FSes via /etc/profile is fragile (risk of multiple mounts from
# login shells). Throw away this operation when we have a proper initial process.
if [ -f /test/init.sh ]; then
. /test/init.sh
fi
if [ -f /etc/profile.d/init.sh ]; then
. /etc/profile.d/init.sh
fi