Bug 77384

Summary: /etc/rc.d/var uses commands from /usr/bin and /usr/sbin when /usr not yet mounted (diskless boot)
Product: Base System Reporter: Ralf Wenk <RZ-FreeBSD1004>
Component: confAssignee: Brooks Davis <brooks>
Status: Closed FIXED    
Severity: Affects Only Me CC: RZ-FreeBSD1004
Priority: Normal    
Version: 5.3-STABLE   
Hardware: Any   
OS: Any   

Description Ralf Wenk 2005-02-11 11:50:12 UTC
When booting diskless the NFS filesystem for /usr is not mounted at the
time /etc/rc.d/var is executed. So there is no /usr/sbin/mtree,
/usr/sbin/newsyslog, /usr/bin/touch and /usr/bin/awk availiable.
See also problem report 77340.

Fix: 

As a workaround extend the root filesystem /usr directory with bin and sbin
directories and copy the neccesary files (mtree, touch, newsyslog and awk
(see pr 77340)) into them.
How-To-Repeat: Try a diskless boot and look at the output of the rc scripts.
Comment 1 Bob Bishop 2005-02-22 13:33:26 UTC
Aless messy workaround is to mount /usr in _populate_var() in rc.d/var.
Comment 2 Brooks Davis freebsd_committer freebsd_triage 2005-03-02 02:19:56 UTC
State Changed
From-To: open->patched

I've committed code to CURRENT today that removes the requirements for 
touch and newsyslog as well as code to try to mount /usr if mtree is 
needed. 


Comment 3 Brooks Davis freebsd_committer freebsd_triage 2005-03-02 02:19:56 UTC
Responsible Changed
From-To: freebsd-bugs->brooks

I'm working on this stuff.
Comment 4 Matteo Riondato 2005-04-04 07:10:53 UTC
Can this change be MFCed ?
Thanks
Best Regards
-- 
Rionda aka Matteo Riondato
Disinformato per default
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Comment 5 brooks 2005-04-04 07:32:30 UTC
On Mon, Apr 04, 2005 at 08:10:53AM +0200, Matteo Riondato wrote:
> Can this change be MFCed ?


It's on my todo list, but I've got a couple more changes I want to make
in HEAD before I do an MFC of my recent changes to the diskless code.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
Comment 6 Brooks Davis freebsd_committer freebsd_triage 2005-10-31 20:01:59 UTC
State Changed
From-To: patched->closed

Realisticly, I'm not likely to do the MFC to 5.x at this point. The 
problems are pretty much fixed in 6.0 and I don't have the time to test 
under 5.x. If you do need this MFCd, please request that the PR be 
reopened.