On Wed, May 27, 2015 at 03:08:53PM +0200, Harald Dunkel wrote: > cmp -s bsd /bsd || ln -f /bsd /obsd > ln: /bsd: No such file or directory > *** Error 1 in /usr/src/sys/arch/amd64/compile/GENERIC (Makefile:904 > 'install-kernel-gate5c.example.com.') > > I have rebuilt it *because* /bsd was deleted by accident. A > little bit more clever code here would be highly appreciated. > You can see what `make install' would have done by using the `-n' switch for make:
$ make -n install cmp -s bsd /bsd || ln -f /bsd /obsd cp bsd /nbsd mv /nbsd /bsd $ To fix your machine, either use the cp and mv commands as above or simply issuing # cp bsd /bsd would be enough since `/bsd' isn't in the way.