fs: Bail out on errors in fakeroot script
authorStefan Sørensen <stefan.sorensen@spectralink.com>
Tue, 24 Feb 2015 15:47:34 +0000 (16:47 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 8 Mar 2015 21:21:36 +0000 (22:21 +0100)
commit6b577b3c3adf7de2582985160ab2906c8dabf22c
tree2a5bc75ee193a70d75c8bcee7c9d1231221dc57d
parent3ce5f4d27d72bddf6308a829e8e5ed65b124ec1d
fs: Bail out on errors in fakeroot script

Currently, the generated fakeroot script has no error checking causing
make to continue building even if some of the fakeroot script commands
have failed. This can cause e.g. using an invalid device tables to go
unnoticed.

So add a "set -e" to the start of the fakeroot script so it will exit
with a failure code as soon as one of the script commands fails.

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
fs/common.mk