From owner-freebsd-bugs Wed Nov 8 10:10:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BF4CF37B4C5 for ; Wed, 8 Nov 2000 10:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id KAA66876; Wed, 8 Nov 2000 10:10:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) 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 ; 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 ; 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 To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/22696: picobsd build with 'router' configuration can't boot. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 22696 >Category: misc >Synopsis: picobsd build with router configuration can't boot. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 08 10:10:01 PST 2000 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message