Subject: the /sys symlink gets recreated all the time.
To: None <tech-install@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
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.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD Sales, Support and Service:  http://www.wasabisystems.com/


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
 TARGET_ENDIANNESS=
 .endif
 
-all clean cleandir depend distclean etc includes install lint:
+all clean cleandir depend distclean etc includes lint:
 
+SYMLINKS=  usr/src/sys /sys
 
 .include <bsd.kernobj.mk>
 
@@ -271,10 +272,9 @@ distribution: distrib-dirs
 	(cd ../gnu/usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
 .endif
 
-distrib-dirs:
+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: