conf/51003: typo in /etc/rc.diskless1
David Kelly
dkelly at hiwaay.net
Tue Apr 15 13:50:17 PDT 2003
>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 at 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:
More information about the freebsd-bugs
mailing list