[Buildroot] [git commit] board/pc/post-image-efi.sh: fail on any error

Peter Korsgaard peter at korsgaard.com
Mon Dec 2 11:47:47 UTC 2019

commit: https://git.buildroot.net/buildroot/commit/?id=3b1d9f74c7bc86a2a626bd38a98b34c77a6465a6
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

As already done in post-build.sh, to prevent hiding errors.

Signed-off-by: Carlos Santos <unixmania at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 board/pc/post-image-efi.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/board/pc/post-image-efi.sh b/board/pc/post-image-efi.sh
index 178565f18b..a0df70a6ab 100755
--- a/board/pc/post-image-efi.sh
+++ b/board/pc/post-image-efi.sh
@@ -1,5 +1,7 @@
+set -e
 UUID=$(dumpe2fs "$BINARIES_DIR/rootfs.ext2" 2>/dev/null | sed -n 's/^Filesystem UUID: *\(.*\)/\1/p')
 sed -i "s/UUID_TMP/$UUID/g" "$BINARIES_DIR/efi-part/EFI/BOOT/grub.cfg"
 sed "s/UUID_TMP/$UUID/g" board/pc/genimage-efi.cfg > "$BINARIES_DIR/genimage-efi.cfg"

More information about the buildroot mailing list