distro: not taint environment variables if possible
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 4 Dec 2018 06:46:55 +0000 (15:46 +0900)
committerAlexander Graf <agraf@suse.de>
Wed, 13 Feb 2019 08:40:05 +0000 (09:40 +0100)
commit13dd6665ed18f72380ca596931d609bc108d4b82
tree509996328021c5ba7165a3458035994a1aab699d
parentd178836bd21ed1436ec612c8a8b5b4e1ca792087
distro: not taint environment variables if possible

The aim of this patch is not to have temporary variables used in
distro_bootcmd left as environment variables after run something.
See the discussion[1].
Without this patch, saveenv command also saves those variables, too.
While they are apparently safe, scsi_need_init can be harmful.

Please note that, in most cases, a variable should be converted to
hush's local variable, while "devplist" cannot because it is created
by "part" command as an environment variable.

[1] https://lists.denx.de/pipermail/u-boot/2018-December/350209.html

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/config_distro_bootcmd.h