Subject: NetBSD-1.3.3 bug in /etc/rc
To: None <netbsd-bugs@NetBSD.org>
From: furry one <mouse@whiskers.com>
List: netbsd-bugs
Date: 05/05/1999 12:00:45
Hello. I'm not sure if this is a bug or not, but it could be. I
installed NetBSD-1.3.3 on my recently-aquired sparcs. One has a large
drive, while the others have small 100meg drives with / and swap and /usr
mounted NFS. Upon booting the NFS-relying ones, it would hang at
"setting tty flags" which I could ^C out of to continue booting. I
examined /etc/rc, and found this:
=============================================================================
[begin /etc/rc snippit]
# set flags on ttys. (do early, in case they use tty for SLIP in netstart)
echo 'setting tty flags'
ttyflags -a
# load kernel modules specified in /etc/lkm.conf if the /usr filesystem
# is already present with "/" or can be mounted now
if checkyesno lkm && [ -f /etc/rc.lkm ]; then
mount /usr >/dev/null 2>&1
if [ -x /usr/bin/ld ]; then
lkmstage=BEFORENET
. /etc/rc.lkm
fi
fi
# set hostname, turn on network
echo 'starting network'
sh /etc/netstart
if [ $? -ne 0 ]; then
exit 1
fi
[end /etc/rc snippit]
===========================================================================
Mounting /usr is not possible before starting the network, since it's
NFS mounted. I moved the "load kernel module" chunk after /etc/netstart,
and now have no problem.
-Mouse
----------------------------------------------------------------------------
mouse@whiskers.com ()__() || I think so, Brain, but if they called
http://www.whiskers.com (oo) || them "Sad Meals", kids wouldn't buy
==()== || them!
----------------------------------------------------------------------------
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d--(---) s: a-- C+++@ US++++ P--- L+++ E--- W++(--) N+ !o !K w--- !O M
V-- PS PE+ Y-@ PGP t+ 5 X+ R* tv+ b+ DI+ D--- G e++ h++ r% y++
------END GEEK CODE BLOCK------
Furry Code: FRM3cm !A C++ D++ H++ M+ P++ R+ T+++ W-- Z Sm+ RLCT a cb++$ d--
e++ f++ h-- iwf+++$ j p- sm++