phosphor-software-manager: Create /usr/local mount point

Mount /usr/local as a tmpfs to be used as a patch location for the
host bios code and (eventually) the bmc.
Add a dependency to it to the pnor updater service starts since
that's a service that will use it.

Change-Id: I41cf3f4f536bad4b3966503953f79db2d052022d
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/org.open_power.Software.Host.Updater.service b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/org.open_power.Software.Host.Updater.service
index dd3866c..12ad4ea 100644
--- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/org.open_power.Software.Host.Updater.service
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/org.open_power.Software.Host.Updater.service
@@ -3,6 +3,8 @@
 Wants=xyz.openbmc_project.Software.Version.service
 Before=xyz.openbmc_project.Software.Version.service
 Before=mboxd.service
+Wants=usr-local.mount
+Before=usr-local.mount
 
 [Service]
 ExecStart={sbindir}/openpower-update-manager
diff --git a/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager.bb b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager.bb
index 458b96c..c31c507 100644
--- a/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager.bb
+++ b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager.bb
@@ -66,6 +66,7 @@
     obmc-flash-bmc-setenv@.service \
     obmc-flash-bmc-ubirw-remove.service \
     obmc-flash-bmc-ubiro-remove@.service \
+    usr-local.mount \
     "
 
 # Name of the mtd device where the ubi volumes should be created
diff --git a/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/usr-local.mount b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/usr-local.mount
new file mode 100644
index 0000000..7aa2cf6
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager/usr-local.mount
@@ -0,0 +1,7 @@
+[Unit]
+Description=/usr/local
+
+[Mount]
+What=tmpfs
+Where=/usr/local
+Type=tmpfs