Even in the reinstall case make sure that /boot/modules is a directory.
authorSimon Schubert <corecode@dragonflybsd.org>
Mon, 5 Jan 2009 13:32:37 +0000 (14:32 +0100)
committerSimon Schubert <corecode@dragonflybsd.org>
Mon, 5 Jan 2009 16:32:49 +0000 (17:32 +0100)
sys/conf/kern.post.mk

index 96dc4e2..3074760 100644 (file)
@@ -220,6 +220,7 @@ modules-install:
        cd $S ; env ${MKMODULESENV} ${MAKE} -f Makefile.modules install
 
 modules-reinstall:
+       mkdir -p ${DESTDIR}/boot/modules # Ensure that the modules directory exists!
        cd $S ; env ${MKMODULESENV} ${MAKE} -f Makefile.modules install
 
 config.o: