Subject: kern/827: diskless booting can't swap locally
To: None <gnats-admin@NetBSD.ORG>
From: Luke Mewburn <lukem@dodo.melb.cpr.itg.telecom.com.au>
List: netbsd-bugs
Date: 02/26/1995 15:05:05
>Number:         827
>Category:       kern
>Synopsis:       diskless boot kernel ignores 'swap on sd0' entry
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   lm
>Arrival-Date:   Sun Feb 26 15:05:02 1995
>Originator:     Luke Mewburn
>Organization:
"	Werj"
>Release:        1.0-current
>Environment:
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

>Description:
	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")

>How-To-Repeat:
	Configure a diskless kernel to "root on nfs swap on sd0".
	Setup the server.
	Boot.

>Fix:
	Change the way sys/nfs/nfs_boot.c is used by the boot section
	in the kernel.
>Audit-Trail:
>Unformatted: