forked from josch/mmdebstrap
allow for /etc/resolv.conf and /etc/hostname to already exist inside the chroot without warning about it
This commit is contained in:
parent
daa886264b
commit
8674e11c71
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue