summaryrefslogtreecommitdiffstats
path: root/rules/rootfs.make
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2009-05-19 15:01:35 +0000
committerWolfram Sang <w.sang@pengutronix.de>2009-05-19 15:01:35 +0000
commitdb61efdb34a2965ffa98136c70092519bcd38935 (patch)
tree244962ade8fa4203aec0bf89985d792b38d50de5 /rules/rootfs.make
parent711664909801a56b350b39de74e133abf3e7927e (diff)
downloadptxdist-db61efdb34a2965ffa98136c70092519bcd38935.tar.gz
ptxdist-db61efdb34a2965ffa98136c70092519bcd38935.tar.xz
* rootfs: refactor /etc/profile
Busybox' ash parses first /etc/profile, then the file stored in ENV which is also used for subshells. So, refactor /etc/profile to a specific and generic part and let ENV point to the latter. This prevents /etc/profile being sourced twice. git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10542 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/rootfs.make')
-rw-r--r--rules/rootfs.make1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/rootfs.make b/rules/rootfs.make
index c40c70b5e..1184bb8ca 100644
--- a/rules/rootfs.make
+++ b/rules/rootfs.make
@@ -188,6 +188,7 @@ ifdef PTXCONF_ROOTFS_NSSWITCH_CONF
endif
ifdef PTXCONF_ROOTFS_PROFILE
@$(call install_alternative, rootfs, 0, 0, 0644, /etc/profile, n)
+ @$(call install_alternative, rootfs, 0, 0, 0644, /etc/profile.environment, n)
endif
ifdef PTXCONF_ROOTFS_PROTOCOLS
@$(call install_alternative, rootfs, 0, 0, 0644, /etc/protocols, n)