activation_ubi: Set priority in constructor

The base activation class sets the priority value in its
constructor, but since the ubi class overrides this method,
need to call it in the ubi constructor as well, otherwise
the priority values won't get written to flash after a BMC
factory reset, causing the pnor updater to think there are
no pnor versions installed.

Tested: After a BMC factory reset, the ubi priority() method
was called, which restores the pnor priority files, and the
pnor symlinks were created.

Fixes: openbmc/openbmc#3507

Change-Id: I5d234ab232c91ac01d5c15c1c6ae87408c73b99c
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/ubi/activation_ubi.hpp b/ubi/activation_ubi.hpp
index a17bb82..c0ffa01 100644
--- a/ubi/activation_ubi.hpp
+++ b/ubi/activation_ubi.hpp
@@ -12,7 +12,12 @@
 class RedundancyPriorityUbi : public RedundancyPriority
 {
   public:
-    using RedundancyPriority::RedundancyPriority;
+    RedundancyPriorityUbi(sdbusplus::bus::bus& bus, const std::string& path,
+                          Activation& parent, uint8_t value) :
+        RedundancyPriority(bus, path, parent, value)
+    {
+        priority(value);
+    }
     virtual ~RedundancyPriorityUbi() = default;
 
     /** @brief Overloaded Priority property set function