commit | bea979a2898945926f2be97ef12bdebec1c444e7 | [log] [tgz] |
---|---|---|
author | Saqib Khan <khansa@us.ibm.com> | Tue Aug 01 11:32:27 2017 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Aug 02 15:50:41 2017 +0000 |
tree | 534ae6610c411bb8cefd9ecf7af1aff078facdd2 | |
parent | 9a7594dde21cf43b8fed07b991a70b4d8f280860 [diff] |
openpower-software-manager: Create a mount dir for ubi volumes. After a BMC Code update the directories under /media/ are deleted. Therefore the obmc-flash-bios-ubiremount.service fails to mount the PNOR ubi volumes as mount point is no longer exist. Add a check to create the mountdir before mounting the ubi volumes on /media dir. Resolves openbmc/openbmc#2062 Change-Id: I4f148fb376795102bd630e87fc8045e422e796ff Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios index 0896569..bfd9592 100644 --- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios +++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/flash/openpower-software-manager/obmc-flash-bios
@@ -160,6 +160,10 @@ if [[ ${name} == pnor-prsv ]] || [[ ${name} == pnor-rw* ]] || [[ ${name} == pnor-ro* ]]; then mountdir="/media/${name}" + if [ ! -d "${mountdir}" ]; then + mkdir -p "${mountdir}" + fi + if [[ ${name} == pnor-ro* ]] then ubiblock --create /dev/ubi${pnor}_${element}