Bug 39459

Summary: /etc/mtree/BSD.var.dist not up to date
Product: Base System Reporter: Fabien Menemenlis <nihilist>
Component: miscAssignee: Gregory Neil Shapiro <gshapiro>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.6-STABLE   
Hardware: Any   
OS: Any   

Description Fabien Menemenlis 2002-06-18 10:40:01 UTC
/etc/mtree/BSD.var.dist does not create /var/spool/clientmqueue as required by the new version of sendmail, leading to errors at startup on diskless machines (creating /var from this file)

Fix: 

the spool section of the mtree in /etc/mree/BSD.var.dist should look like this:
    spool
        lock            uname=uucp gname=dialer mode=0775
        ..
/set gname=daemon
        clientmqueue    uname=smmsp gname=smmsp mode=0770
        ..
        lpd
        ..
        mqueue
        ..
        opielocks       mode=0700
        ..
(the line "clientmqueue    uname=smmsp gname=smmsp mode=0770" was added)
How-To-Repeat: boot a diskless machine
Comment 1 Peter Pentchev 2002-06-18 11:01:11 UTC
On Tue, Jun 18, 2002 at 02:34:44AM -0700, Fabien Menemenlis wrote:
> 
> >Number:         39459
> >Category:       misc
> >Synopsis:       /etc/mtree/BSD.var.dist not up to date
> >Originator:     Fabien Menemenlis
> >Environment:
> FreeBSD resolver.iliad.fr 4.6-STABLE FreeBSD 4.6-STABLE #6: Tue Jun 18 10:32:33 CEST 2002     fabien@resolver.iliad.fr:/usr/obj/usr/src/sys/CELERON  i386
> >Description:
> /etc/mtree/BSD.var.dist does not create /var/spool/clientmqueue as required by the new version of sendmail, leading to errors at startup on diskless machines (creating /var from this file)
> >How-To-Repeat:
> boot a diskless machine
> >Fix:
> the spool section of the mtree in /etc/mree/BSD.var.dist should look like this:
>     spool
>         lock            uname=uucp gname=dialer mode=0775
>         ..
> /set gname=daemon
>         clientmqueue    uname=smmsp gname=smmsp mode=0770
>         ..
>         lpd
>         ..
>         mqueue
>         ..
>         opielocks       mode=0700
>         ..
> (the line "clientmqueue    uname=smmsp gname=smmsp mode=0770" was added)

Would not a better fix be to add an mtree(8) invocation using the new
BSD.sendmail.dist file, created for this very purpose, to either
rc.sendmail or both rc.diskless2 and rc.d/rc.diskless?

G'luck,
Peter

-- 
Peter Pentchev	roam@ringlet.net	roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
This inert sentence is my body, but my soul is alive, dancing in the sparks of your brain.
Comment 2 Peter Pentchev freebsd_committer freebsd_triage 2002-06-18 11:10:14 UTC
Responsible Changed
From-To: freebsd-bugs->gshapiro

Over to our Sendmail maintainer to decide whether BSD.sendmail.dist 
should be mtree'd in rc.sendmail or in rc.diskless2, or whether some 
other action should be taken WRT diskless boots and clientmqueue/.
Comment 3 Gregory Neil Shapiro freebsd_committer freebsd_triage 2002-06-18 16:54:24 UTC
State Changed
From-To: open->closed

Dup of PR 39350.