From: Adriaan Schmidt <adriaan.schmidt@siemens.com>
To: <isar-users@googlegroups.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
Adriaan Schmidt <adriaan.schmidt@siemens.com>
Subject: [PATCH v2 2/2] targz-img: Handle sparse files efficiently
Date: Mon, 11 Jul 2022 09:11:55 +0200 [thread overview]
Message-ID: <20220711071155.776897-3-adriaan.schmidt@siemens.com> (raw)
In-Reply-To: <20220711071155.776897-1-adriaan.schmidt@siemens.com>
From: Jan Kiszka <jan.kiszka@siemens.com>
Saves space in case the image contains any sparse files.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
---
meta/classes/imagetypes.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/imagetypes.bbclass b/meta/classes/imagetypes.bbclass
index bea5af53..1e8e223d 100644
--- a/meta/classes/imagetypes.bbclass
+++ b/meta/classes/imagetypes.bbclass
@@ -8,7 +8,7 @@ IMAGER_INSTALL_tar = "tar"
TAR_OPTIIONS ?= ""
IMAGE_CMD_tar() {
- ${SUDO_CHROOT} tar ${TAR_OPTIONS} -cvf \
+ ${SUDO_CHROOT} tar ${TAR_OPTIONS} -cvSf \
${IMAGE_FILE_CHROOT} --one-file-system -C ${PP_ROOTFS} .
}
--
2.30.2
next prev parent reply other threads:[~2022-07-11 7:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 7:11 [PATCH v2 0/2] Sparse tar generation Adriaan Schmidt
2022-07-11 7:11 ` [PATCH v2 1/2] sstate: Generate image packages using sparse Adriaan Schmidt
2022-07-11 7:11 ` Adriaan Schmidt [this message]
2022-07-19 18:56 ` [PATCH v2 0/2] Sparse tar generation 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=20220711071155.776897-3-adriaan.schmidt@siemens.com \
--to=adriaan.schmidt@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@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