Date: Tue, 15 Apr 2003 15:49:06 -0500 (CDT) From: David Kelly <dkelly@hiwaay.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: conf/51003: typo in /etc/rc.diskless1 Message-ID: <200304152049.h3FKn6bJ047787@grumpy.dyndns.org> Resent-Message-ID: <200304152050.h3FKoFH4037537@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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/*/<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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304152049.h3FKn6bJ047787>