From 3eeee67cc4fbc9aca4dc3c12944c7f22987dc84b Mon Sep 17 00:00:00 2001 From: Qingsong Chen Date: Tue, 22 Jul 2025 03:14:14 +0000 Subject: [PATCH] Move init.sh to /etc/profile.d --- test/src/etc/profile | 6 +++--- test/src/{apps/scripts => etc/profile.d}/init.sh | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename test/src/{apps/scripts => etc/profile.d}/init.sh (100%) diff --git a/test/src/etc/profile b/test/src/etc/profile index 0f74a7b84..77cc00797 100644 --- a/test/src/etc/profile +++ b/test/src/etc/profile @@ -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 \ No newline at end of file +if [ -f /etc/profile.d/init.sh ]; then + . /etc/profile.d/init.sh +fi diff --git a/test/src/apps/scripts/init.sh b/test/src/etc/profile.d/init.sh similarity index 100% rename from test/src/apps/scripts/init.sh rename to test/src/etc/profile.d/init.sh