From owner-freebsd-current@FreeBSD.ORG Mon Oct 18 00:38:13 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AABA16A4CE; Mon, 18 Oct 2004 00:38:13 +0000 (GMT) Received: from auk1.snu.ac.kr (auk1.snu.ac.kr [147.46.100.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83F6943D58; Mon, 18 Oct 2004 00:38:12 +0000 (GMT) (envelope-from spamrefuse@yahoo.com) Received: from [147.46.44.181] (spamrefuse@yahoo.com) by auk1.snu.ac.kr (Terrace Internet Messaging Server) with ESMTP id 2004101809:36:47:306728.15513.2876242864 for ; Mon, 18 Oct 2004 09:36:47 +0900 (KST) Message-ID: <41731071.2030405@yahoo.com> Date: Mon, 18 Oct 2004 09:38:09 +0900 From: Rob User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20041017 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tim Kientzle , freebsd-current References: <20041013172834.81984.qmail@web54008.mail.yahoo.com> <4172E340.20206@freebsd.org> In-Reply-To: <4172E340.20206@freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-TERRACE-SPAMMARK: YES-__TRSYS_LV__3 (SR:-7.65) (SRN:SPAMROBOT) ----------------- Subject: Re: I deleted /stand/, but I need it again for diskless boot... X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2004 00:38:13 -0000 Tim Kientzle wrote: > I suggest patching /etc/rc.d/initdiskless instead: > > @@ -299,13 +299,13 @@ > cp -Rp $j/* /$subdir > fi > done > - for j in /conf/$i/*.cpio.gz ; do > + for j in /conf/$i/*.cpio ; do > subdir=${j%*.cpio.gz} > subdir=${subdir##*/} > if [ -f $j ]; then > create_md $subdir > echo "Loading /$subdir from cpio archive $j" > - (cd / ; /stand/gzip -d < $j | /stand/cpio --extract -d ) > + (cd / ; /bin/cat < $j | /bin/pax -r ) > fi > done > for j in /conf/$i/*.remove ; do > > For some reason, people keep forgetting > that /bin/pax can read cpio archives. > This patch also eliminates the use of gzip > (at the cost of requiring an uncompressed archive, > which should not be a problem in practice). > If you prefer, you could use /rescue/gzip > instead. The old initdiskless script worked fine for me. So I replaced only the line with /stand/ by following: (cd / ; /rescue/gzip -d < $j | /bin/pax -r ) and then my diskless boot stops working !?!?! The kernel seems to load fine. Unfortunately the boot process is not at all verbose. In both cases I see the long array of dots while loading the kernel with the 'done' at the end. After that nothing but "dark silence" until the PC is up and running with the login prompt. That loging prompt never appears when using the /rescue/ line above (yes, I've waiting a really long time :). When I change it back to the old line with /stand/, everything is fine again. Just for double checking that these commands are there: # ls -als /rescue/gzip /bin/pax 82 -r-xr-xr-x 1 root wheel 82852 Oct 15 20:17 /bin/pax 3616 -r-xr-xr-x 135 root wheel 3680076 Oct 15 20:19 /rescue/gzip So, any idea what's the misterious logic here? Does 'pax' depend on something that has not been mounted yet on the diskless PC? I don't know how to investigate this, because there's no output to the screen during bootup. Regards, Rob.