From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 15 13:50:17 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7048B37B401 for ; Tue, 15 Apr 2003 13:50:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DBE943FD7 for ; Tue, 15 Apr 2003 13:50:16 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3FKoFUp037538 for ; Tue, 15 Apr 2003 13:50:15 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3FKoFH4037537; Tue, 15 Apr 2003 13:50:15 -0700 (PDT) Resent-Date: Tue, 15 Apr 2003 13:50:15 -0700 (PDT) Resent-Message-Id: <200304152050.h3FKoFH4037537@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Kelly Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4EE037B401 for ; 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 ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: conf/51003: typo in /etc/rc.diskless1 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Kelly List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 20:50:17 -0000 >Number: 51003 >Category: conf >Synopsis: typo in /etc/rc.diskless1 >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Apr 15 13:50:15 PDT 2003 >Closed-Date: >Last-Modified: >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/*//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: >Unformatted: