Estimating the size of an iso based on a directory tree in python

Andy Shevchenko andy at smile.org.ua
Wed Nov 28 17:02:15 UTC 2007


Hi Jesse Keating!

 On Wed, Nov 28, 2007 at 11:41:15AM -0500, Jesse Keating wrote next:

> Does anybody know of examples on how to do this?  This is for pungi, so
> that you can just provide the desired iso size and it will make as many
> necessary to hold your tree.

Just add -print-size to the genisoimage call before real making image.

guess_size_in_blks = ... os.popen("genisoimage ...")

-- 
With best regards,
Andy Shevchenko.      mailto: andy at smile.org.ua





More information about the fedora-devel-list mailing list