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 1TsxyS-0006Rq-5U for ptxdist@pengutronix.de; Wed, 09 Jan 2013 16:53:52 +0100 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1TsxyS-0000hX-4W for ptxdist@pengutronix.de; Wed, 09 Jan 2013 16:53:52 +0100 Date: Wed, 9 Jan 2013 16:53:52 +0100 From: Michael Olbrich Message-ID: <20130109155352.GM13335@pengutronix.de> References: <50ED7151.9050203@erwinrol.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <50ED7151.9050203@erwinrol.com> Subject: Re: [ptxdist] adding md5 list to final image 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 Wed, Jan 09, 2013 at 02:32:01PM +0100, Erwin Rol wrote: > I hacked scripts/lib/ptxd_make_image_prepare_work_dir.sh to add a /.md5 > file to the image that holds all MD5's of all files, so I can verify on > a running system if everything really is OK. > > Of course ptxdist is a moving target and with every update of ptxdist my > hack does not apply and I have to tweak it again. You don't need to copy the whole file. Just redefining 'ptxd_make_image_prepare_work_dir_impl' should be enough. > What is the correct place to add files to the final image? The thing is > for something like making that /.md5 file I need access to the final > image content. > > Anny hints are welcome! Maybe some post-install script works? I'm not sure when ipkg/opkg calls those. There is no explicit hook for anything like this in ptxdist, but patches are welcome :-). Michael -- 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