From owner-freebsd-hackers Mon Nov 6 10:20:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by hub.freebsd.org (Postfix) with ESMTP id B2EF337B4E5; Mon, 6 Nov 2000 10:19:54 -0800 (PST) Received: (from jhay@localhost) by zibbi.icomtek.csir.co.za (8.11.0/8.11.0) id eA6IJNl33880; Mon, 6 Nov 2000 20:19:23 +0200 (SAT) (envelope-from jhay) From: John Hay Message-Id: <200011061819.eA6IJNl33880@zibbi.icomtek.csir.co.za> Subject: Re: dhcp boot was: Re: diskless workstation In-Reply-To: <200011051108.aa63419@salmon.maths.tcd.ie> from Ian Dowse at "Nov 5, 2000 11:08:38 am" To: iedowse@maths.tcd.ie (Ian Dowse) Date: Mon, 6 Nov 2000 20:19:23 +0200 (SAT) Cc: ambrisko@whistle.com (Doug Ambrisko), jhay@icomtek.csir.co.za (John Hay), msmith@FreeBSD.ORG (Mike Smith), danny@cs.huji.ac.il (Danny Braniss), freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In message <200011042037.MAA63521@whistle.com>, Doug Ambrisko writes: > >| to the kernel's output. I had a look at the pxe code in > >| /sys/boot/i386/libi386/pxe.c where pxeboot is built from and in > >| /sys/i386/i386/autoconf.c which is the kernel side and it looks like > >| they don't do anything about swap. There is a /* XXX set up swap? */ > >| placeholder though. :-) > > > >Yep looks like you're right, I just tried it on 4.2-BETA it worked in > >4.1.1. Swap is now broken ... sigh this is going to be a problem. I > >guess the only thing you might be able to do in the interim is to do a > >vnconfig of a file and then mount that as swap. I think the vnconfig > >man pages describes this. Hopefully it works over NFS. > > The diskless setup we use here is based on a compiled-in MFS root > rather than an NFS root, so we couldn't use the bootp code to enable > NFS swap. Our solution was a modification to swapon() to enable > direct swapping to NFS regular files. > > This results in the same swaponvp() call that the bootp code would > use (at the time we implemented this, swapping over NFS via vnconfig > was extremely unreliable; I think things are much better now). Thanks for the patch. I was able to make a swapfile with vnconfig on -stable, but on -current I just get a device not configured error. Your patch work just fine on -current. John -- John Hay -- John.Hay@icomtek.csir.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message