upgrade - Make sure /var/run/sem exists
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 8 May 2016 18:47:09 +0000 (11:47 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 8 May 2016 18:47:09 +0000 (11:47 -0700)
* Make sure /var/run/sem exists and is mode 1777.  Newer mtrees already
  handle this, but upgrades from older installs might not have the directory.

Reported-by: benjolitz
etc/Makefile

index 4215f18..f0b4ce7 100644 (file)
@@ -156,6 +156,8 @@ upgrade_etc:        upgrade_check preupgrade remove-obsolete-files
            ${DEFAULTS} ${DESTDIR}/etc/defaults
        cd ${UPGRADE_SRCDIR}/periodic; ${MAKE} install
        mkdir -p ${DESTDIR}/etc/rc.d
+       mkdir -p ${DESTDIR}/var/run/sem
+       chmod 1777 ${DESTDIR}/var/run/sem
        cd ${UPGRADE_SRCDIR}/rc.d; ${MAKE} install 
        cd ${UPGRADE_SRCDIR}/devd; ${MAKE} install
        # "../share/termcap/make etc-termcap" expanded inline here: