Subject: the /sys symlink gets recreated all the time.
To: None <>
From: Simon Burge <>
List: tech-install
Date: 11/30/2000 22:48:26
I'm one of these folks who doesn't like things to get updated on a
"make build" if it hasn't changed, and one visible thing that has
always bugged me is the /sys symlink.  Can anyone see anything wrong
with the trailing patch to fix this?

Simon Burge                            <>
NetBSD Sales, Support and Service:

Index: Makefile
RCS file: /cvsroot/basesrc/etc/Makefile,v
retrieving revision 1.171
diff -d -p -u -r1.171 Makefile
--- Makefile	2000/11/30 11:31:05	1.171
+++ Makefile	2000/11/30 11:44:31
@@ -136,8 +136,9 @@ TARGET_ENDIANNESS= -B
-all clean cleandir depend distclean etc includes install lint:
+all clean cleandir depend distclean etc includes lint:
+SYMLINKS=  usr/src/sys /sys
 .include <>
@@ -271,10 +272,9 @@ distribution: distrib-dirs
 	(cd ../gnu/usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
+distrib-dirs: install
 	${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${DESTDIR}
 	-mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u
-	cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
 .if !defined(RELEASEDIR)
 release snapshot snap_pre snap_md_pre snap_md_post iso-image: