allow for /etc/resolv.conf and /etc/hostname to already exist inside the chroot without warning about it

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-01-09 09:47:35 +01:00
parent daa886264b
commit 8674e11c71
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -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.");