public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "T. Schaffner" <tobias.schaffner@siemens.com>
To: <isar-users@googlegroups.com>
Cc: Tobias Schaffner <tobias.schaffner@siemens.com>
Subject: [PATCH v2 1/1] Fail on errors in chroot subshell
Date: Tue, 25 Oct 2022 12:15:15 +0200	[thread overview]
Message-ID: <20221025101515.1707381-2-tobias.schaffner@siemens.com> (raw)
In-Reply-To: <20221025101515.1707381-1-tobias.schaffner@siemens.com>

From: Tobias Schaffner <tobias.schaffner@siemens.com>

Let the chroot subshell in the image locales extension fail on errors.

Signed-off-by: Tobias Schaffner <tobias.schaffner@siemens.com>
---
 meta/classes/image-locales-extension.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes/image-locales-extension.bbclass b/meta/classes/image-locales-extension.bbclass
index 2db6d4a..01163bb 100644
--- a/meta/classes/image-locales-extension.bbclass
+++ b/meta/classes/image-locales-extension.bbclass
@@ -77,6 +77,7 @@ __EOF__
 
         # Enter image and trigger locales config and localepurge:
         chroot '${ROOTFSDIR}' /bin/sh <<'EOSH'
+            set -e
 
             echo 'running locale debconf-set-selections'
             debconf-set-selections /tmp/locale.debconf
-- 
2.34.1


  reply	other threads:[~2022-10-25 10:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 10:15 [PATCH v2 0/1] " T. Schaffner
2022-10-25 10:15 ` T. Schaffner [this message]
2022-11-03  8:54 ` Anton Mikanovich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221025101515.1707381-2-tobias.schaffner@siemens.com \
    --to=tobias.schaffner@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox