Subject: Modifying /usr/src
To: None <current-users@NetBSD.ORG>
From: Julian Bean <jules@mailbox.co.uk>
List: current-users
Date: 02/28/1996 23:30:11
I am trying to work out the best way of keeping a clean /usr/src/sys but still
modifying it (particularly for kernel work).

Is the best approach to remove /sys as a symlink to /usr/src/sys, and make
it a directory (or a symlink to /home/jelibean/sys as their isn't *that*
much space on my root partition), and then

mount -t union -b /usr/src/sys /sys

to mount the real sys *underneath* /usr/src/sys ??

My understand is that if I then (for example) apply a set of kernel diffs
distributed by someone who makes a custom kernel, the new versions of the
files will be created in /sys, and next time I run sup it will be able to
apply it's changes 'underneath' (obviously I will still need to re-patch).

Also, if I make some modifications (like adding debuggin printf's to
routines I am working on) then they will also not affect my clean sup'ed
source tree.

Do any of you -current die-hards have particular comments on this approach
or better ways to do it?

Jules

P.S.  What happend to mount_lofs?


/----------------+-------------------------------+---------------------\
|  Jelibean aka  | jules@mailbox.co.uk           |  6 Evelyn Road      |
|  Jules aka     |                               |  Richmond, Surrey   |
|  Julian Bean   |(jelibean@jmlbhome.demon.co.uk)|  TW9 2TF    *UK*    |
+----------------+-------------------------------+---------------------+
|  The Other Place - n. (pop.) Depending on the affiliation of the     |
|  speaker, one of Oxford, Cambridge, The House of Lords, The House of |
|  Commons, Hell.  Draw your own conclusions.                          |
\----------------------------------------------------------------------/