only remove policy-rc.d if it exists

pull/1/head
parent 1f15f690e7
commit 7eb0851c59
Signed by: josch
GPG Key ID: F2CBA5C78FBD83E1

@ -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…
Cancel
Save