Create Version and Activation objects for current PNOR image

On BMC boot, create the Software version and activation that
points to the current PNOR version by reading:
/var/lib/phosphor-software-manager/pnor/ro

Resolves openbmc/openbmc#1762

Change-Id: I46ddb37491a1a230699da9f3acbd3fcff23dc538
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/item_updater.hpp b/item_updater.hpp
index 6409698..2a71905 100755
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -39,6 +39,7 @@
                                     this,
                                     std::placeholders::_1))
         {
+            processPNORImage();
         }
 
         /** @brief Sets the given priority free by incrementing
@@ -50,6 +51,11 @@
          */
         void freePriority(uint8_t value);
 
+        /**
+         * @brief Create and populate the active PNOR Version.
+         */
+        void processPNORImage();
+
     private:
         /** @brief Callback function for Software.Version match.
          *  @details Creates an Activation dbus object.
@@ -59,15 +65,6 @@
         void createActivation(sdbusplus::message::message& msg);
 
         /**
-         * @brief Get the extended version from the specified file.
-         *
-         * @param[in] manifestFilePath  - File to read.
-         *
-         * @return The extended version.
-         */
-        static std::string getExtendedVersion(const std::string&
-                                               manifestFilePath);
-        /**
          * @brief Validates the presence of SquashFS iamge in the image dir.
          *
          * @param[in]  filePath - The path to the SquashfFS image.