only remove policy-rc.d if it exists
This commit is contained in:
parent
1f15f690e7
commit
7eb0851c59
1 changed files with 3 additions and 1 deletions
|
@ -876,7 +876,9 @@ sub run_chroot(&$) {
|
|||
if (-e "$options->{root}/sbin/start-stop-daemon.REAL") {
|
||||
move("$options->{root}/sbin/start-stop-daemon.REAL", "$options->{root}/sbin/start-stop-daemon") or error "cannot move start-stop-daemon: $!";
|
||||
}
|
||||
unlink "$options->{root}/usr/sbin/policy-rc.d" or error "cannot unlink policy-rc.d: $!";
|
||||
if (-e "$options->{root}/usr/sbin/policy-rc.d") {
|
||||
unlink "$options->{root}/usr/sbin/policy-rc.d" or error "cannot unlink policy-rc.d: $!";
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue