diff options
author | Saqib Khan <khansa@us.ibm.com> | 2017-07-18 00:43:52 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-07-28 16:48:04 -0500 |
commit | 4c5d744346499a927eee0ef0e1adb5218b33cc01 (patch) | |
tree | 2236cb3a2a6b82f086085be8fa8e9075aabb4452 /configure.ac | |
parent | 9c8adfa325b68e26ce44ff58ca3224bf433c31f0 (diff) | |
download | openpower-pnor-code-mgmt-4c5d744346499a927eee0ef0e1adb5218b33cc01.tar.gz openpower-pnor-code-mgmt-4c5d744346499a927eee0ef0e1adb5218b33cc01.zip |
PNOR: Restore version and activation dbus objects on BMC reboot.
- Read the /media/ dir for active pnor versions. Each active
version has a pnor.toc inside /media/ which is used to
recreate the version and activation objects.
- version that matches the version inside
"/var/lib/phosphor-software-manager/pnor/ro" is considered
the current version and its priority is set to 0.
Resolves openbmc/openbmc#1846
Change-Id: Ic3d22cc310fdd60d708a73ddc406d3fb0620845c
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index eeabcfa4e..e6b0409af 100755 --- a/configure.ac +++ b/configure.ac @@ -80,6 +80,8 @@ AC_DEFINE(SYSTEMD_INTERFACE, "org.freedesktop.systemd1.Manager", AC_DEFINE(PNOR_TOC_FILE, "pnor.toc", [The name of the PNOR table of contents file]) +AC_DEFINE(MEDIA_DIR, "/media/", + [The base dir where all PNOR RO AND RW partitions are mounted]) AC_DEFINE(PNOR_RO_PREFIX, "/media/pnor-ro-", [The prefix path for the versioned read-only pnor partitions]) AC_DEFINE(PNOR_RW_PREFIX, "/media/pnor-rw-", |