From: jon@ringle.org
To: ptxdist@pengutronix.de
Cc: Jon Ringle <jringle@gridpoint.com>
Subject: [ptxdist] [PATCH] image: Create root.tgz with label
Date: Sun, 19 Jan 2014 03:35:58 -0500 [thread overview]
Message-ID: <1390120558-16457-1-git-send-email-jon@ringle.org> (raw)
From: Jon Ringle <jringle@gridpoint.com>
Create the root.tgz with a label in the form:
${PTXCONF_PROJECT_VENDOR}-${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION}
This is useful for an automated install script to verify quickly that the
tar is of the right type by doing:
tar --test-label -f root.tgz
Signed-off-by: Jon Ringle <jringle@gridpoint.com>
---
rules/post/image_tgz.make | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rules/post/image_tgz.make b/rules/post/image_tgz.make
index 5318143..f7e71d1 100644
--- a/rules/post/image_tgz.make
+++ b/rules/post/image_tgz.make
@@ -12,10 +12,10 @@ SEL_ROOTFS-$(PTXCONF_IMAGE_TGZ) += $(IMAGEDIR)/root.tgz
ifdef PTXCONF_IMAGE_TGZ
$(IMAGEDIR)/root.tgz: $(STATEDIR)/image_working_dir
- @echo -n "Creating root.tgz from working dir..."
+ @echo -n "Creating root.tgz from working dir with label..."
@cd $(image/work_dir); \
(awk -F: $(DOPERMISSIONS) $(image/permissions) && \
- ( echo -n "tar -zcf "; \
+ ( echo -n "tar --label \"${PTXCONF_PROJECT_VENDOR}-${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION}\" -zcf "; \
echo -n "$@ ." ) \
) | $(FAKEROOT) --
@echo "done."
--
1.7.10.4
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2014-01-19 8:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-19 8:35 jon [this message]
2014-01-20 11:07 ` Michael Olbrich
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=1390120558-16457-1-git-send-email-jon@ringle.org \
--to=jon@ringle.org \
--cc=jringle@gridpoint.com \
--cc=ptxdist@pengutronix.de \
/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