From 8674e11c710d8479846ab8771fb79081a3e77a14 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Tue, 9 Jan 2024 09:47:35 +0100 Subject: [PATCH] allow for /etc/resolv.conf and /etc/hostname to already exist inside the chroot without warning about it --- mmdebstrap | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mmdebstrap b/mmdebstrap index cb80d77..143a489 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -2234,6 +2234,8 @@ sub run_setup() { chmod $mode, "$options->{root}/$file" or error "cannot chmod $file: $!"; } + } elsif (-e $file && -e "$options->{root}/$file") { + info "rootfs alreday contains $file"; } else { warning("Host system does not have a $file to copy into the" . " rootfs.");