From takemura@naoe.t.u-tokyo.ac.jp  Wed Nov  8 10:06:48 2000
Return-Path: <takemura@naoe.t.u-tokyo.ac.jp>
Received: from king.naoe.t.u-tokyo.ac.jp (king.naoe.t.u-tokyo.ac.jp [133.11.65.63])
	by hub.freebsd.org (Postfix) with ESMTP id 52FC437B479
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  8 Nov 2000 10:06:48 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
	by king.naoe.t.u-tokyo.ac.jp (8.9.3/3.7W/hiroko-rubens-2.2) with ESMTP id DAA68606
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 9 Nov 2000 03:06:42 +0900 (JST)
Message-Id: <20001109030642D.takemura@naoe.t.u-tokyo.ac.jp>
Date: Thu, 09 Nov 2000 03:06:42 +0900
From: TAKEMURA Masahiro <mastake@msel.t.u-tokyo.ac.jp>
Sender: "Mas.TAKEMURA" <takemura@naoe.t.u-tokyo.ac.jp>
To: FreeBSD-gnats-submit@freebsd.org
Subject: picobsd build with 'router' configuration can't boot.
X-Send-Pr-Version: 3.2

>Number:         22696
>Category:       misc
>Synopsis:       picobsd build with router configuration can't boot.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    luigi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 08 10:10:01 PST 2000
>Closed-Date:    Tue Jul 22 00:45:50 PDT 2003
>Last-Modified:  Tue Jul 22 00:45:50 PDT 2003
>Originator:     Mas.TAKEMURA
>Release:        FreeBSD 3.5-STABLE i386
>Organization:
University of Tokyo
>Environment:

	FreeBSD 3.5-STABLE

>Description:
	'router' configuration uses 'oinit' program. 'oinit' includes
	simple shell function. But not all functions are implemented,
	for example *(asterisk: which means 'wild card').
	Picobsd's configuration script 'rc' uses *(asterisk) and oinit
	can't interpret. So picobsd with router configuration can't
	complete boot sequences.

>How-To-Repeat:

	cd /usr/src/release/picobsd/build
	./build

	choose Type: router and build.
	boot with accomplished floppy disk.

>Fix:

	move '/usr/src/release/picobsd/router/floppy.tree/etc/mfs.rc' to 
	'/usr/src/release/picobsd/mfs_tree/etc/oinit.rc'. And apply
	following patch

--- /usr/src/release/picobsd/mfs_tree/etc/oinit.rc.orig Thu Nov  9 02:24:52 2000
+++ /usr/src/release/picobsd/mfs_tree/etc/oinit.rc      Thu Nov  9 02:25:08 2000
@@ -22,4 +22,5 @@
 umount /dev/fd0a
 echo "Ok. (Now you may remove floppy if you like)"
 echo
+gzip -d rc.gz
 . rc
--- /usr/src/release/picobsd/build/stage1.orig	Thu Nov  9 02:11:34 2000
+++ /usr/src/release/picobsd/build/stage1	Thu Nov  9 02:48:45 2000
@@ -99,13 +99,17 @@
 		>/dev/null || fail $? makedevs
     fi
 
-    MFS_RC=mfs_tree/etc/rc
-    if [ ! -f ${MFS_RC} ] ; then # no private version. use generic mfs.rc
-	MFS_RC=${BUILDDIR}/../${MFS_RC}
-    fi
     if [ "${INIT}" = "oinit" ] ; then
+	MFS_RC=mfs_tree/etc/oinit.rc
+	if [ ! -f ${MFS_RC} ] ; then # no private version. use generic mfs.rc
+	    MFS_RC=${BUILDDIR}/../${MFS_RC}
+	fi
 	cat ${MFS_RC} | sed -e "s/@VER@/${VER}/g" > ${MFS_MOUNTPOINT}/etc/oinit.rc
     else
+	MFS_RC=mfs_tree/etc/rc
+	if [ ! -f ${MFS_RC} ] ; then # no private version. use generic mfs.rc
+	    MFS_RC=${BUILDDIR}/../${MFS_RC}
+	fi
 	cat ${MFS_RC} | sed -e "s/@VER@/${VER}/g" > ${MFS_MOUNTPOINT}/etc/rc
 	if [ -f mfs_tree/etc/login.conf ] ; then
 	    cp mfs_tree/etc/login.conf ${MFS_MOUNTPOINT}/etc/login.conf

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: luigi 
State-Changed-When: Mon Sep 3 19:47:43 PDT 2001 
State-Changed-Why:  


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22696 
State-Changed-From-To: closed->analyzed 
State-Changed-By: luigi 
State-Changed-When: Mon Sep 3 19:48:37 PDT 2001 
State-Changed-Why:  
will take care of it later. 


Responsible-Changed-From-To: freebsd-bugs->luigi 
Responsible-Changed-By: luigi 
Responsible-Changed-When: Mon Sep 3 19:48:37 PDT 2001 
Responsible-Changed-Why:  
been doing some picobsd work lately... 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=22696 
State-Changed-From-To: analyzed->closed 
State-Changed-By: luigi 
State-Changed-When: Tue Jul 22 00:44:25 PDT 2003 
State-Changed-Why:  
we do not monitor closely whether picobsd configs work 
over time, due to generic code bloat which forces us to 
remove features as time goes. 


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