scripts/gen_image_generic.sh: fail on errors
authorStijn Tintel <stijn@linux-ipv6.be>
Tue, 26 Mar 2019 17:35:55 +0000 (19:35 +0200)
committerStijn Tintel <stijn@linux-ipv6.be>
Tue, 26 Mar 2019 22:13:30 +0000 (00:13 +0200)
commitb422e1631eb810685db79dd25fa64e57a0917f25
treebe8e1c95963c6e70becce824c020986495238cb9
parente1444ab59cfcd330cfac6f51aa14106961585ee1
scripts/gen_image_generic.sh: fail on errors

The script always exits with value 0, even if some of the commands fail.
This can potentially create broken, unbootable images, e.g. when
make_ext4fs fails due to TARGET_KERNEL_PARTSIZE being too small for the
kernel. Avoid this by failing the script when any command fails.

Acked-by: Jo-Philipp Wich <jo@mein.io>
Acked-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
scripts/gen_image_generic.sh