From owner-freebsd-current Fri Mar 30 12:43: 2 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 7DD5D37B71B for ; Fri, 30 Mar 2001 12:42:58 -0800 (PST) (envelope-from krepel@fokus.gmd.de) Received: from fokus.gmd.de (dial-17 [193.174.152.238]) by mailhub.fokus.gmd.de (8.8.8/8.8.8) with ESMTP id WAA25527; Fri, 30 Mar 2001 22:42:55 +0200 (MET DST) Message-ID: <3AC4EFD9.585ECC77@fokus.gmd.de> Date: Fri, 30 Mar 2001 21:43:08 +0100 From: Falco Reply-To: krepel@fokus.gmd.de X-Mailer: Mozilla 4.76 (Macintosh; U; PPC) X-Accept-Language: en,de MIME-Version: 1.0 To: Mathew KANNER Cc: freebsd-current@FreeBSD.ORG Subject: Re: new rc.diskless{1,2} files References: <3AC4C496.60861EB6@fokus.gmd.de> <20010330125701.C17585@cs.mcgill.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mathew KANNER wrote: > > On Mar 30, Falco Krepel wrote: > > I have implemented good ideas from Mike Smith in my > > rc.diskless{1,2} files and make some other changes: > > Hi, > I don't have access to hardware to test diskless but have a > few suggestions from looking at proposal. > > BOOTP probably isn't how most people are going to do it, > instead they will be using PXE, perhaps we should retire the reference > to BOOTP in the following. Yes. I also using PXE for diskless operation. > > > md_device=`mdconfig -a -t malloc -s $1` > > chkerr $? "configuring md device" > > disklabel -rw $md_device auto > > chkerr $? "labelling md device" > > md_filesystem=/dev/$md_device"c" > > newfs $md_filesystem 2>&1 >/dev/null > > chkerr $? "making md device filesystem" > > mount $md_filesystem $2 > > Barring a change in newfs or mount, it would be nice if it > could tunefs to enable softupdates. OK. This make sense for bid MDs when the physical memory isn't enough. In my opinion is it for smaller MD residing only in memory as fast as with tunfs enabled. But it souldn't be a disadvantage to alwasy enable this option. > > > bootp_ifc="" > > bootp_ipa="" > > bootp_ipbca="" > > iflist=`ifconfig -l` > > for i in ${iflist} ; do > > set `ifconfig ${i}` > > while [ $# -ge 1 ] ; do > > if [ "${bootp_ifc}" = "" -a "$1" = "inet" ] ; then > > bootp_ifc=${i} ; bootp_ipa=${2} ; shift > > fi > > if [ "${bootp_ipbca}" = "" -a "$1" = "broadcast" ] ; then > > bootp_ipbca=$2; shift > > fi > > shift > > done > > if [ "${bootp_ifc}" != "" ] ; then > > break > > fi > > done > > echo "Interface ${bootp_ifc} IP-Address ${bootp_ipa} Broadcast ${bootp_ipbca}" > > IIRC, PXE sets a kernel env. with this info. Maybe we should > try to grab that first and then fall back to the above. > This is left from the original version. I will check this option. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message