mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] adding md5 list to final image
@ 2013-01-09 13:32 Erwin Rol
  2013-01-09 15:53 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Erwin Rol @ 2013-01-09 13:32 UTC (permalink / raw)
  To: ptxdist

Hey all,

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.

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!

- Erwin



-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] adding md5 list to final image
  2013-01-09 13:32 [ptxdist] adding md5 list to final image Erwin Rol
@ 2013-01-09 15:53 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2013-01-09 15:53 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-09 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-09 13:32 [ptxdist] adding md5 list to final image Erwin Rol
2013-01-09 15:53 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox