Subject: kern/827: diskless booting can't swap locally
To: None <gnats-admin@NetBSD.ORG>
From: Luke Mewburn <email@example.com>
Date: 02/26/1995 15:05:05
>Synopsis: diskless boot kernel ignores 'swap on sd0' entry
>Responsible: kern-bug-people (Kernel Bug People)
>Arrival-Date: Sun Feb 26 15:05:02 1995
>Originator: Luke Mewburn
System: NetBSD shrike 1.0A NetBSD 1.0A (SHRIKE) #7: Sun Feb 26 17:01:27 EST 1995 root@karybdis:/z/0/src/sys/arch/i386/compile/SHRIKE i386
A config line of the form:
'config netbsd root on nfs swap on sd0'
doesn't swap on sd0b, it swaps on nfs.
Also, it says 'root device on sd0a' just before it attempts
to use NFS (because I actually boot the kernel of a miniroot
of 2MB on sd0a.)
Finally (a minor point), "pstat -s" doesn't work. I suspect
that it would if I was swapping locally...
From looking at /sys/sys/nfs_boot.c, it assumes that if you
have root on nfs, that's where you want swap. It should listen
to what you config the kernel for.
(Technically, it should also support "root on sd0 swap on nfs")
Configure a diskless kernel to "root on nfs swap on sd0".
Setup the server.
Change the way sys/nfs/nfs_boot.c is used by the boot section
in the kernel.