The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=f13275cf03ae3ce220efb7a323f73290276a731f

commit f13275cf03ae3ce220efb7a323f73290276a731f
Author:     Alex Samorukov <s...@freebsd.org>
AuthorDate: 2024-05-28 14:45:30 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2024-05-29 19:29:53 +0000

    export $autoboot var when running from $boottrace_cmd
    
    At the moment, if bootrace profiling is enabled, autoboot is not
    exported to the rc scripts. This causes fsck to not check the root
    filesystem.  To fix this, pass _boot, rc_fast and autoboot to the
    boottrace process to mimic what diretly sourcing the rc.d scripts.
    
    PR: 278993
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/1261
---
 libexec/rc/rc.subr | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libexec/rc/rc.subr b/libexec/rc/rc.subr
index 1b0fdc837228..2fd4796b569f 100644
--- a/libexec/rc/rc.subr
+++ b/libexec/rc/rc.subr
@@ -1856,7 +1856,8 @@ boottrace_fn()
                set $_arg; . $_file
                boottrace_sysctl "$_file done"
        else
-               $boottrace_cmd "$_file" "$_arg"
+               _boot="${_boot}" rc_fast="${rc_fast}" autoboot="${autoboot}" \
+                   $boottrace_cmd "$_file" "$_arg"
        fi
 }
 

Reply via email to