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

main
parent daa886264b
commit 8674e11c71
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -2234,6 +2234,8 @@ sub run_setup() {
chmod $mode, "$options->{root}/$file" chmod $mode, "$options->{root}/$file"
or error "cannot chmod $file: $!"; or error "cannot chmod $file: $!";
} }
} elsif (-e $file && -e "$options->{root}/$file") {
info "rootfs alreday contains $file";
} else { } else {
warning("Host system does not have a $file to copy into the" warning("Host system does not have a $file to copy into the"
. " rootfs."); . " rootfs.");

Loading…
Cancel
Save