installer: Fix the "missing /var/run/sem" issues better.
commitd4c25c30fc5f9ffeb258150a9590ef56954435bb
authorSascha Wildner <saw@online.de>
Sun, 19 Mar 2017 15:34:37 +0000 (19 16:34 +0100)
committerSascha Wildner <saw@online.de>
Sun, 19 Mar 2017 15:34:37 +0000 (19 16:34 +0100)
treede1a7ea80daa3548eecd2e1a2e4ad6b683d89323
parent033b33dcdf971c2325a79c6bbb924f0d78663405
installer: Fix the "missing /var/run/sem" issues better.

* Add -C to the tmpfs mount of /var/run on the USB image. This
  ensures that the USB image itself keeps the ppp/, sem/, and
  wpa_supplicant/ dirs under /var/run.

* Since we do not cpdup /var/run explicitly during installation
  it ends up empty on the installed system. Ensure that it has
  the subdirectories it needs by running mtree on /var.

* It looks like the 1e5a476188185cf1161f4fe3ffc060465562ef0d
  change could be reverted because the issue never was that
  /var/run/sem wasn't existing _after_ make upgrade. The mtree
  in the preceding installworld takes care of it. It doesn't
  hurt either, so just shuffle the commands a bit downwards.
etc/Makefile
nrelease/Makefile
share/installer/cmdnames.conf
usr.sbin/installer/dfuibe_installer/fn_install.c