Subject: Why does distrib-dirs blow away /sys?
To: None <>
From: John Hawkinson <>
List: tech-userlevel
Date: 08/12/2000 17:52:03
Why does etc/Makefile create /sys?:

   240  distrib-dirs:
   241          ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${DESTDIR}
   242          -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u
   243          cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
Personally, I find this annoying if I happen to have a machine with
different user and kernel versions (e.g. running a 1.5B kernel and
a 1.5_ALPHA2 userland), and a 'make build' blows away my /sys symlink
and repoints it to the wrong tree.

Why is creation of the /sys symlink done in distrib-dirs? It's called
by the 'beforeinstall' target, presumably so that 'make build'
can install what it needs to install. But it should not be installing
anything in /sys, so this seems wrong.