NetBSD Problem Report #827
From gnats Sun Feb 26 14:52:37 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id OAA06802 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sun, 26 Feb 1995 14:52:36 -0800
Message-Id: <199502262251.JAA00295@dodo.melb.cpr.itg.telecom.com.au>
Date: Mon, 27 Feb 1995 09:51:49 +1100
From: Luke Mewburn <lukem@dodo.melb.cpr.itg.telecom.com.au>
Reply-To: lm@werj.com.au
To: gnats-bugs@NetBSD.ORG
Subject: diskless booting can't swap locally
X-Send-Pr-Version: 3.2
>Number: 827
>Category: kern
>Synopsis: diskless boot kernel ignores 'swap on sd0' entry
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: lm
>Arrival-Date: Sun Feb 26 15:05:02 +0000 1995
>Closed-Date: Tue May 07 00:19:34 +0000 1996
>Last-Modified: Tue May 07 00:26:55 +0000 1996
>Originator: Luke Mewburn
>Release: 1.0-current
>Organization:
" Werj"
>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.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: pk
State-Changed-When: Mon May 6 20:19:34 EDT 1996
State-Changed-Why:
This should be fixed as of revision 1.23 of nfs_boot.c (1996/02/13).
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.