diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2019-06-12 10:43:33 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-07-03 08:47:53 +0200 |
commit | f3a0ba62b015fe455648fb47561ad8a5e7945ebd (patch) | |
tree | a06ae41fc4a46ee407b049a12e382255a1c3b04c /Makefile | |
parent | d755a24939eb1297a68c5bdec1ae1362b081dfd4 (diff) | |
download | barebox-f3a0ba62b015fe455648fb47561ad8a5e7945ebd.tar.gz barebox-f3a0ba62b015fe455648fb47561ad8a5e7945ebd.tar.xz |
startup: execute /env/bin/init as part of the initial shell
Commit 90df2a955e3c ("defaultenv: Convert init script to C")
unintentionally changed the way the legacy "/env/bin/init" script is
run, so that it runs in a sub-shell context, effectively changing
`run_command("source /env/bin/init");` to
`run_command("/env/bin/init");`. Therefore, any changes to shell
environment variables made by the script are undone when the script
exits. This patch reverts back to the old behavior.
Fixes: 90df2a955e3c ("defaultenv: Convert init script to C")
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions