diff --git a/etc/rc.subr b/etc/rc.subr index 6a3845c58c4e..b5ef06a762b2 100644 --- a/etc/rc.subr +++ b/etc/rc.subr @@ -581,7 +581,7 @@ run_rc_command() exit 1 fi - if [ ! -x $command ]; then + if [ ! -x ${_chroot}${command} ]; then info "run_rc_command: cannot run ($command)." return 0 fi