From nobody@FreeBSD.org  Sat Feb  9 13:18:50 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 69DC737B405
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Feb 2002 13:18:50 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g19LIox44374;
	Sat, 9 Feb 2002 13:18:50 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200202092118.g19LIox44374@freefall.freebsd.org>
Date: Sat, 9 Feb 2002 13:18:50 -0800 (PST)
From: jim smith <n0oct@sbcglobal.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rc.diskless1 creates insufficiently sized /etc if also using XFree86-4.1, resulting in failed diskless boot attempts.
X-Send-Pr-Version: www-1.0

>Number:         34776
>Category:       conf
>Synopsis:       rc.diskless1 creates insufficiently sized /etc if also using XFree86-4.1, resulting in failed diskless boot attempts.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 09 13:20:01 PST 2002
>Closed-Date:    Wed Mar 02 02:31:37 GMT 2005
>Last-Modified:  Wed Mar 02 02:31:37 GMT 2005
>Originator:     jim smith
>Release:        FreeBSD 4.5-RELEASE #1
>Organization:
the Bedrose P. Lipschitz Experience
>Environment:
FreeBSD shirley.brainski.org 4.5-RELEASE FreeBSD 4.5-RELEASE #1: Mon Feb  4 00:58:13 CST 2002     jim@shirley.brainski.org:/usr/obj/usr/src/sys/ATHLONv1  i386
>Description:
rc.diskless1 creates an mfs /etc which is sized to 4096 sectors [~1.9M].  Since XFree86-4.1 puts many of its files now in /etc/X11 [with symbolic links from /usr/X11R6/lib/X11 (where they used to be located)], the original size allocated for the mfs /etc is too small.  When trying to boot a diskless workstation with XFree86-4.1 on the system, the boot will fail because there is insufficient space in the mfs /etc.
>How-To-Repeat:
Configure a diskless workstation server with FreeBSD-4.5-Release and XFree86-4.1.  Create a root hierarchy for the diskless root mount point with clone_root and boot a diskless workstation from this server [using the bootp/DHCP method as outlined in the handbook].     
>Fix:
Edit rc.diskless1 [v 1.5.2.6 2001/05/11] as outlined below.  This creates a bigger [maybe a little too big?] mfs /etc, so that populating it doesn't result in diskless boot failure.  NB: this rc.diskless1 file should be edited in /etc *before* clone_root is run.  If fixing this after clone_root has been run, then it must be edited in /<diskless root mount point>/etc.

---  rc.diskless1.orig   Feb  3 07:10:15 2002
+++  rc.diskless1        Feb  8 18:36:34 2002



   # Create an MFS /tmp to temporarily hold files from /etc until we
   # can bootstrap /etc as an MFS.

---mount_md 4096 /etc 0
+++mount_md 8192 /etc 0
   chkerr $? "MFS mount on /etc"
   /bin/chmod 755 /etc
     
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Wed Mar 2 02:30:58 GMT 2005 
State-Changed-Why:  
We moved to the suggested size ages ago. 


Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Wed Mar 2 02:30:58 GMT 2005 
Responsible-Changed-Why:  
Assign to myself incase issues come up. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=34776 
>Unformatted:
