From: Carlos Santos Date: Mon, 2 Dec 2019 11:18:59 +0000 (-0300) Subject: board/pc/post-image-efi.sh: fail on any error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b1d9f74c7bc86a2a626bd38a98b34c77a6465a6;p=buildroot.git board/pc/post-image-efi.sh: fail on any error As already done in post-build.sh, to prevent hiding errors. Signed-off-by: Carlos Santos Signed-off-by: Peter Korsgaard --- 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 @@ #!/bin/sh +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"