forked from josch/mmdebstrap
make errors about moving s-s-d more verbose
This commit is contained in:
parent
519046094e
commit
ea0a6bcd89
1 changed files with 2 additions and 2 deletions
|
@ -862,7 +862,7 @@ sub run_chroot(&$) {
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
move("$options->{root}/sbin/start-stop-daemon", "$options->{root}/sbin/start-stop-daemon.REAL") or error "cannot move start-stop-daemon";
|
move("$options->{root}/sbin/start-stop-daemon", "$options->{root}/sbin/start-stop-daemon.REAL") or error "cannot move start-stop-daemon: $!";
|
||||||
open my $fh, '>', "$options->{root}/sbin/start-stop-daemon" or error "cannot open start-stop-daemon: $!";
|
open my $fh, '>', "$options->{root}/sbin/start-stop-daemon" or error "cannot open start-stop-daemon: $!";
|
||||||
print $fh "#!/bin/sh\n";
|
print $fh "#!/bin/sh\n";
|
||||||
print $fh "echo \"Warning: Fake start-stop-daemon called, doing nothing\">&2\n";
|
print $fh "echo \"Warning: Fake start-stop-daemon called, doing nothing\">&2\n";
|
||||||
|
@ -873,7 +873,7 @@ sub run_chroot(&$) {
|
||||||
&{$cmd}();
|
&{$cmd}();
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
move("$options->{root}/sbin/start-stop-daemon.REAL", "$options->{root}/sbin/start-stop-daemon") or error "cannot move start-stop-daemon";
|
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: $!";
|
unlink "$options->{root}/usr/sbin/policy-rc.d" or error "cannot unlink policy-rc.d: $!";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue