[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-bugs
Subject:    misc/161107: stop_boot in mountcritlocal usage is incorrect.
From:       Stephen Sanders <ssanders () opnet ! com>
Date:       2011-09-28 19:26:16
Message-ID: 201109281926.p8SJQG8L050717 () red ! freebsd ! org
[Download RAW message or body]


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

> Description:
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=true
stop_boot STOP


> How-To-Repeat:
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



> Fix:
Change 

stop_boot true

to

STOP=true
stop_boot STOP

> Release-Note:
> Audit-Trail:
> Unformatted:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic