Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2000 20:19:23 +0200 (SAT)
From:      John Hay <jhay@icomtek.csir.co.za>
To:        iedowse@maths.tcd.ie (Ian Dowse)
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
Subject:   Re: dhcp boot was: Re: diskless workstation
Message-ID:  <200011061819.eA6IJNl33880@zibbi.icomtek.csir.co.za>
In-Reply-To:  <200011051108.aa63419@salmon.maths.tcd.ie> from Ian Dowse at "Nov 5, 2000 11:08:38 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011061819.eA6IJNl33880>