summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods
diff options
context:
space:
mode:
authorjmbills <42755197+jmbills@users.noreply.github.com>2019-10-25 19:09:05 +0300
committerGitHub <noreply@github.com>2019-10-25 19:09:05 +0300
commitcc9cea46d74d280de03c713c8b555153fd811f09 (patch)
tree58c803818ec2e09bb24d6cab4c84ee190e4d9ce9 /meta-openbmc-mods
parent0f1b8401f7058fc88fbcf06c7e98c5ebadc23212 (diff)
parent11aca1d6bf839d173947f47f95f66d481f4ccba9 (diff)
downloadopenbmc-cc9cea46d74d280de03c713c8b555153fd811f09.tar.xz
Merge pull request #16 from lprylli/intel
openbmc-mods/preinit-mount: fix restore_op/reformat_ubi_volume case
Diffstat (limited to 'meta-openbmc-mods')
-rwxr-xr-xmeta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init b/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init
index 9de00fd2f..1ea94ed3a 100755
--- a/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init
+++ b/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init
@@ -135,6 +135,7 @@ reformat_ubi_volume() {
local mnt="$2"
local mtd="/dev/mtd${nv_num}"
local ubi="/dev/ubi${nv_num}"
+ local mtd="/dev/mtd${nv_num}"
local vol="${ubi}_0"
# unmount the volume to reformat it
umount -f "$mnt"