diff options
Diffstat (limited to 'init/bootchartd.c')
-rw-r--r-- | init/bootchartd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/init/bootchartd.c b/init/bootchartd.c index 9c43e3388..9faf14d36 100644 --- a/init/bootchartd.c +++ b/init/bootchartd.c | |||
@@ -306,11 +306,12 @@ int bootchartd_main(int argc UNUSED_PARAM, char **argv) | |||
306 | /* Inform parent that we are ready */ | 306 | /* Inform parent that we are ready */ |
307 | raise(SIGSTOP); | 307 | raise(SIGSTOP); |
308 | 308 | ||
309 | /* If we started by kernel, PATH might be not set. | 309 | /* If we are started by kernel, PATH might be unset. |
310 | * And in order to run tar we may need PATH to be set: | 310 | * In order to find "tar", let's set some sane PATH: |
311 | */ | 311 | */ |
312 | if (cmd == CMD_PID1 && !getenv("PATH")) | 312 | if (cmd == CMD_PID1 && !getenv("PATH")) |
313 | putenv((char*)bb_PATH_root_path); | 313 | putenv((char*)bb_PATH_root_path); |
314 | |||
314 | tempdir = make_tempdir(cmd == CMD_START ? argv[2] : NULL); | 315 | tempdir = make_tempdir(cmd == CMD_START ? argv[2] : NULL); |
315 | do_logging(); | 316 | do_logging(); |
316 | finalize(tempdir); | 317 | finalize(tempdir); |