From dkelly@grumpy.dyndns.org  Tue Apr 15 13:49:08 2003
Return-Path: <dkelly@grumpy.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B4EE037B401
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Apr 2003 13:49:08 -0700 (PDT)
Received: from grumpy.dyndns.org (user-24-214-34-52.knology.net [24.214.34.52])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E708F43F3F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Apr 2003 13:49:07 -0700 (PDT)
	(envelope-from dkelly@grumpy.dyndns.org)
Received: from grumpy.dyndns.org (localhost [127.0.0.1])
	by grumpy.dyndns.org (8.12.9/8.12.9) with ESMTP id h3FKn6BY047788
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 15 Apr 2003 15:49:06 -0500 (CDT)
	(envelope-from dkelly@grumpy.dyndns.org)
Received: (from dkelly@localhost)
	by grumpy.dyndns.org (8.12.9/8.12.9/Submit) id h3FKn6bJ047787;
	Tue, 15 Apr 2003 15:49:06 -0500 (CDT)
Message-Id: <200304152049.h3FKn6bJ047787@grumpy.dyndns.org>
Date: Tue, 15 Apr 2003 15:49:06 -0500 (CDT)
From: David Kelly <dkelly@hiwaay.net>
Reply-To: David Kelly <dkelly@hiwaay.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: typo in /etc/rc.diskless1
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51003
>Category:       conf
>Synopsis:       typo in /etc/rc.diskless1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 15 13:50:15 PDT 2003
>Closed-Date:    Tue Apr 15 23:57:46 PDT 2003
>Last-Modified:  Tue Apr 15 23:57:46 PDT 2003
>Originator:     David Kelly
>Release:        FreeBSD 4.8-RC i386
>Organization:
>Environment:
System: FreeBSD grumpy.dyndns.org 4.8-RC FreeBSD 4.8-RC #0: Tue Apr 1 08:15:26 CST 2003 dkelly@grumpy.dyndns.org:/usr4/obj/usr/src/sys/GRUMPY i386


	
>Description:

/etc/rc.diskless1 does not default md size if /conf/*/<dir>/md_size is missing,
due to a typo.

	
>How-To-Repeat:
	
create /conf/base/tmp/md_size and watch rc.diskless1 fail to create the md mount for /tmp

>Fix:

Put an another backslash in front of $md_size_$1 just like the line above for
$md_created_$1

# cvs diff -c rc.diskless1
Index: rc.diskless1
===================================================================
RCS file: /home/ncvs/src/etc/rc.diskless1,v
retrieving revision 1.5.2.10
diff -c -r1.5.2.10 rc.diskless1
*** rc.diskless1        23 Dec 2002 17:39:06 -0000      1.5.2.10
--- rc.diskless1        15 Apr 2003 20:43:13 -0000
***************
*** 83,89 ****
  #
  create_md() {
      if [ "x`eval echo \\$md_created_$1`" = "x" ]; then
!       if [ "x`eval echo \$md_size_$1`" = "x" ]; then
            md_size=8192
        else
            md_size=`eval echo \\$md_size_$1`
--- 83,89 ----
  #
  create_md() {
      if [ "x`eval echo \\$md_created_$1`" = "x" ]; then
!       if [ "x`eval echo \\$md_size_$1`" = "x" ]; then
            md_size=8192
        else
            md_size=`eval echo \\$md_size_$1`
#

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: roam 
State-Changed-When: Tue Apr 15 23:56:41 PDT 2003 
State-Changed-Why:  
Duplicate of PR conf/49119, fixed in rev. 1.5.2.11 of rc.diskless1 by 
John Hay <jhay@FreeBSD.org> about 36 hours ago. 

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