]> code.ossystems Code Review - openembedded-core.git/commit
run-postinsts: Fix full execution of scripts at first boot
authorAlejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Wed, 8 May 2019 19:04:01 +0000 (12:04 -0700)
committerArmin Kuster <akuster808@gmail.com>
Sat, 1 Jun 2019 21:48:32 +0000 (14:48 -0700)
commit9d1cb1b38f22cb3ab93ac8b431601df12f76dc22
treec206533daa036d8a3ab8bedbaafa6cf4d7257154
parent0423d5049492516a6df6caf3404ddaa1734ff1d9
run-postinsts: Fix full execution of scripts at first boot

run-postinsts runs a given set of scripts during the first boot of the
device, when one of these scripts prints something to stdout (isnt
daemonized correctly), since stdout is not available at that time,
the script execution immediately returns with an error (exit_group()),
this error causes the script to terminate all threads within the process,
causing undesired behavior since the script might still had to execute
some other code.

Replace eval built-in with (), since () executes in a subshell,
even if one of the scripts exits, all threads of that process will only
be within that session, this ensures other scripts meant to be run are
still run afterwards.

[YOCTO #13266]

Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts