From patchwork Mon Dec 2 11:18:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 1203110 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="niXdfqgU"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47RN122HfCz9sP3 for ; Mon, 2 Dec 2019 22:19:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7131184ED7; Mon, 2 Dec 2019 11:19:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2KhwjK6Pgf1o; Mon, 2 Dec 2019 11:19:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E4C4484DDD; Mon, 2 Dec 2019 11:19:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C45A51BF2EC for ; Mon, 2 Dec 2019 11:19:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C0E942051E for ; Mon, 2 Dec 2019 11:19:11 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YCJnhIy8CPYg for ; Mon, 2 Dec 2019 11:19:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by silver.osuosl.org (Postfix) with ESMTPS id 1421F20031 for ; Mon, 2 Dec 2019 11:19:11 +0000 (UTC) Received: by mail-qk1-f193.google.com with SMTP id m188so119335qkc.4 for ; Mon, 02 Dec 2019 03:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=kTlvD/Y/TTJUAyFpzi9OK8kfuvpCHQfiK/JU7rFaacg=; b=niXdfqgU8UnQKmy/W8T78I7AOWkTRxXNXG1CNOgT73c8RBR1Rrmgm8d89GIf3dJStF Vp4Wnx7R4eRbH8gVgBLkna0Ul4Mrp+6q8LXrS+yyp9ok1II3gsIdq5mjXYZbq0qg+Jdi cC43nJHS+UqRTVNOjyxZlYM70CktbU5sw5BZGCXPixHf8D79D2xJ71LruD2ACqhsX5OP 7G2Muc31xwXmaXNPEPfSOmTv7xQ7bumqDz9Sh2cBrWdoBPyZCFjVt0tuzeHtJqCJsmVs vUIRxAj6nf05k1/zy8hS9bUDvnvsMtwnElUTOZPaNR6aC5ezgjF42Gcs712nf1lr3HC9 xBFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kTlvD/Y/TTJUAyFpzi9OK8kfuvpCHQfiK/JU7rFaacg=; b=FFOUm5mE65DPaHGEzMu+4/Bnm60VhcHRJWtjIZJDIsbA1s+cCPXD3npys5brN8I4wC 2fNVdLgPiFh/eeZUNhyxtsNDnknYGwtGWQ5gtMmiZylVt5LD5tEEF4m04CyFV+2Uum90 BP1qnRYT63+dLwwtykvZy/o8iiD7uR3z0LrPH9C/9Pw0WMPZWJe3vc7PducI86ko7KX6 OXr+QYyR0T0nxv4ZrLyWzMd60c58TwuVQZqbBFZPrzXX5R8G5ol2yBJe8BV+Tnmh9RL8 K4ASInytsBdP6chALydOEle5aJfpNiAWfpBHPbEirERAWE4jyVf0Aj6a9OJf6POgFuWQ eCKQ== X-Gm-Message-State: APjAAAWUUy4rnu6IbZHt0bl1LBfgdWwhVmvsxmXzB3oKNHvNa+vRR3FF VICAtpVXAYiFQ5D0XPd2di5OkF9c X-Google-Smtp-Source: APXvYqwd+Ptg8m5Jj7ghEZgmqRHYOJWm5NRTTDPA2hJA3cGdGqiZJSERGqJhIwPkK7xYuONj6EthbA== X-Received: by 2002:a37:6ec4:: with SMTP id j187mr31693767qkc.193.1575285549722; Mon, 02 Dec 2019 03:19:09 -0800 (PST) Received: from casantos.remote.csb ([177.18.71.232]) by smtp.gmail.com with ESMTPSA id l7sm3746516qtf.84.2019.12.02.03.19.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2019 03:19:08 -0800 (PST) From: unixmania@gmail.com To: buildroot@buildroot.org Date: Mon, 2 Dec 2019 08:18:59 -0300 Message-Id: <20191202111859.8874-1-unixmania@gmail.com> X-Mailer: git-send-email 2.18.1 Subject: [Buildroot] [PATCH] board/pc/post-image-efi.sh: fail on any error X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlos Santos MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Carlos Santos As alredy done in post-build.sh, to prevent hiding errors. Signed-off-by: Carlos Santos --- 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 @@ #!/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"