> In message <[EMAIL PROTECTED]>, 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 -- [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to