misc/161107: stop_boot in mountcritlocal usage is incorrect.

Stephen Sanders ssanders at opnet.com
Wed Sep 28 19:30:15 UTC 2011

>Number:         161107
>Category:       misc
>Synopsis:       stop_boot in mountcritlocal usage is incorrect.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 28 19:30:14 UTC 2011
>Originator:     Stephen Sanders
>Release:        8.1
FreeBSD al3170ss.lab.opnet.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Fri Aug 19 11:48:26 PDT 2011     jtoung at focus8.networkphysics.com:/u1/builds/8.5.1/ALKernel.jt/src/sys/amd64/compile/NPBAB8  amd64

The line "stop_boot true" in /etc/rc.d/mountcritlocal is incorrect.  checkvars will complain that $true not set correctly.

It should look more like:

stop_boot STOP

Corrupt a local file system such that it will not mount ( some fun here ) and reboot the system.  When mountcritlocal tries to stop the start up, a message will be displayed stating that $true is invalid and one should check the man page for rc.conf


stop_boot true


stop_boot STOP


More information about the freebsd-bugs mailing list