forked from josch/mmdebstrap
skip symlink creation if it already exists
This commit is contained in:
parent
199e577757
commit
bc7ce4affc
1 changed files with 6 additions and 0 deletions
|
@ -1170,6 +1170,12 @@ sub setup_mounts {
|
||||||
);
|
);
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
if (-e "$options->{root}/dev/$fname") {
|
||||||
|
warning(
|
||||||
|
"skipping creation of ./dev/$fname because it"
|
||||||
|
. " already exists in the target");
|
||||||
|
next;
|
||||||
|
}
|
||||||
push @cleanup_tasks, sub {
|
push @cleanup_tasks, sub {
|
||||||
unlink "$options->{root}/dev/$fname"
|
unlink "$options->{root}/dev/$fname"
|
||||||
or warning("cannot unlink ./dev/$fname: $!");
|
or warning("cannot unlink ./dev/$fname: $!");
|
||||||
|
|
Loading…
Reference in a new issue