Create dir /usr/local for ubi patch service
Since /usr will be a read-only file system, we need to create
a dir before the service usr-local.mount can mount tmpfs onto
that dir.
Resolves openbmc/openbmc#2199
Change-Id: I0277ca343081581a1359d20687997dd573fa65b0
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
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 7a8417c..6b21a8f 100644
--- a/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager.bb
+++ b/meta-phosphor/common/recipes-phosphor/flash/phosphor-software-manager.bb
@@ -60,6 +60,7 @@
FILES_${PN}-updater += " \
${sbindir}/phosphor-image-updater \
${sbindir}/obmc-flash-bmc \
+ /usr/local \
"
DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service"
DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service"
@@ -87,6 +88,7 @@
do_install_append() {
install -d ${D}${sbindir}
install -m 0755 ${WORKDIR}/obmc-flash-bmc ${D}${sbindir}/obmc-flash-bmc
+ install -d ${D}/usr/local
}
SRC_URI += "git://github.com/openbmc/phosphor-bmc-code-mgmt"