From: Henning Schild <henning.schild@siemens.com>
To: isar-users@googlegroups.com
Cc: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>,
Henning Schild <henning.schild@siemens.com>
Subject: [PATCH v3 1/4] classes: make sure container extension can run multiple times
Date: Mon, 2 Aug 2021 13:54:01 +0200 [thread overview]
Message-ID: <20210802115404.22707-2-henning.schild@siemens.com> (raw)
In-Reply-To: <20210802115404.22707-1-henning.schild@siemens.com>
If the container extension fails somewhere in the middle, it could leave
things behind resulting in issues when trying to run only that one task
again.
So make sure to remove stuff as root and remove another possibly
existing directory.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
meta/classes/image-container-extension.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image-container-extension.bbclass b/meta/classes/image-container-extension.bbclass
index e26604a04f06..6537fc693265 100644
--- a/meta/classes/image-container-extension.bbclass
+++ b/meta/classes/image-container-extension.bbclass
@@ -18,7 +18,7 @@ containerize_rootfs() {
# prepare OCI container image skeleton
bbdebug 1 "prepare OCI container image skeleton"
- rm -rf "${oci_img_dir}"
+ sudo rm -rf "${oci_img_dir}" "${oci_img_dir}_unpacked"
sudo umoci init --layout "${oci_img_dir}"
sudo umoci new --image "${oci_img_dir}:${empty_tag}"
sudo umoci config --image "${oci_img_dir}:${empty_tag}" \
--
2.31.1
next prev parent reply other threads:[~2021-08-02 11:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-02 11:54 [PATCH v3 0/4] Allow better control over container tags Henning Schild
2021-08-02 11:54 ` Henning Schild [this message]
2021-08-02 11:54 ` [PATCH v3 2/4] classes: simplify tag handling in container class Henning Schild
2021-08-02 11:54 ` [PATCH v3 3/4] classes: allow more control over container image name and tag Henning Schild
2021-08-02 12:26 ` Silvano Cirujano Cuesta
2021-08-02 13:14 ` Henning Schild
2021-08-02 13:27 ` Silvano Cirujano Cuesta
2021-08-05 16:01 ` Henning Schild
2021-08-02 11:54 ` [PATCH v3 4/4] classes: fix comment in container-img class Henning Schild
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=20210802115404.22707-2-henning.schild@siemens.com \
--to=henning.schild@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=silvano.cirujano-cuesta@siemens.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