ItemUpdater: Validate PNOR squashfs image

- Validate the image dir by checking its content.
- Set Activation to "Ready" if validation passed or
  else set it to "Invalid".

Resolves openbmc/openbmc#1356

Change-Id: Ica73ae5604e74db11cd58c223d82265309ea76a6
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
diff --git a/activation.hpp b/activation.hpp
index 5c6c5fe..4945531 100755
--- a/activation.hpp
+++ b/activation.hpp
@@ -32,16 +32,19 @@
          * @param[in] path   - The Dbus object path
          * @param[in] versionId  - The software version id
          * @param[in] extVersion - The extended version
+         * @param[in] activationStatus - The status of Activation
          */
         Activation(sdbusplus::bus::bus& bus, const std::string& path,
                    std::string& versionId,
-                   std::string& extVersion) :
+                   std::string& extVersion,
+                   sdbusplus::xyz::openbmc_project::Software::
+                   server::Activation::Activations activationStatus) :
                    ActivationInherit(bus, path.c_str(), true),
                    versionId(versionId)
         {
             // Set Properties.
             extendedVersion(extVersion);
-
+            activation(activationStatus);
             // Emit deferred signal.
             emit_object_added();
         }