Hi,

Quoting Josh Triplett (2023-06-17 20:37:47)
> mmdebstrap has a couple of places in which it copies host configuration into
> the bootstrapped system. For instance, it puts the host's hostname into
> /etc/hostname, and copies in the host's /etc/resolv.conf. Please consider
> providing a single option that suppresses all current and future uses of the
> host configuration, to make it easier to build reproducible installations.
> 
> The manpage mentions using a customize-hook to handle those two files,
> but given the common need for reproducible installations, it'd be nice
> to have this become simpler and standardized.

you are right, mmdebstrap only creates bit-by-bit reproducible output if run
from the same host because of these two files it copies in. You are right in
that it should be easier to prevent those two files from messing up
reproducibility.

The next question becomes: what should be done about /etc/hostname and
/etc/resolv.conf? What should their reproducible content be?

Or should they just be deleted?

You are not the only one who wants such an option:

https://gitlab.mister-muffin.de/josch/mmdebstrap/issues/26
https://gitlab.mister-muffin.de/josch/mmdebstrap/issues/33

As I've explained in the first of above issue, I'd rather add a hook than a
command line flag because all instances that I can come up with where you want
to run mmdebstrap to create bit-by-bit reproducible output, you run it from a
script and not manually type the command from the terminal. Can you confirm
this?

Thanks!

cheers josch

Attachment: signature.asc
Description: signature

Reply via email to