From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:6f8:1178:2:5054:ff:fec0:8e10] ident=Debian-exim) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1W5Chq-0000z7-1u for ptxdist@pengutronix.de; Mon, 20 Jan 2014 12:07:50 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1W5Chq-0003cM-09 for ptxdist@pengutronix.de; Mon, 20 Jan 2014 12:07:50 +0100 Date: Mon, 20 Jan 2014 12:07:49 +0100 From: Michael Olbrich Message-ID: <20140120110749.GE29805@pengutronix.de> References: <1390120558-16457-1-git-send-email-jon@ringle.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1390120558-16457-1-git-send-email-jon@ringle.org> Subject: Re: [ptxdist] [PATCH] image: Create root.tgz with label Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Sun, Jan 19, 2014 at 03:35:58AM -0500, jon@ringle.org wrote: > From: Jon Ringle > > 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 > --- > 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 "; \ I've changed this to use single quotes to avoid possible shell expansion, and applied it. Michael > echo -n "$@ ." ) \ > ) | $(FAKEROOT) -- > @echo "done." > -- > 1.7.10.4 > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de