From a1e5043676d0165416fd66bb18ff1d646f5a93c6 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Mon, 23 Oct 2023 11:55:35 +0200 Subject: [PATCH] add example on how to remove /etc/resolv.conf and /etc/hostname to make the chroot reproducible --- mmdebstrap | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index 3abb1cf..2b83e91 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -6757,6 +6757,13 @@ Example: Preparing a chroot for use with autopkgtest --customize-hook='echo "127.0.0.1 localhost host" > "$1/etc/hosts"' --customize-hook=/usr/share/autopkgtest/setup-commands/setup-testbed +Example: to mimic B behaviour, B copies from the host. +Remove them in a B<--customize-hook> to make the chroot reproducible across +multiple hosts: + + --customize-hook='rm "$1"/etc/resolv.conf' + --customize-hook='rm "$1"/etc/hostname' + =item B<--hook-directory>=I Execute scripts in I with filenames starting with C,