script in question:
https://github.com/Whonix/Whonix/blob/master/help-steps/analyze_image
might be helpful for the Debian project:
https://wiki.debian.org/ReproducibleBuilds/Contribute#Working_on_installation_media_or_live_systems
Not that simple, because there is no lib that abstracts mounting / unmounting images:
- https://github.com/Whonix/Whonix/blob/master/help-steps/unmount-raw
- https://github.com/Whonix/Whonix/blob/master/help-steps/mount-raw
Maybe such a lib should be created beforehand.