Add ipmi group in phosphor-ipmi-net
Update phosphor-ipmi-net.bb file to add
'ipmi' group similar to phosphor-ipmi-host.bb.
Users belonging to this group will be able to
access IPMI based on their privilege.
(From meta-phosphor rev: 719bb6b03c0775de51c001726c6bd42dad086854)
Change-Id: I5dae7b13111f079377f611f9d459ff8d1c9a0a58
Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-net_git.bb b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-net_git.bb
index dd686ff..c5984f1 100644
--- a/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-net_git.bb
+++ b/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-net_git.bb
@@ -16,6 +16,12 @@
RDEPENDS_${PN} += "libsystemd"
RDEPENDS_${PN} += "iptables"
+inherit useradd
+
+USERADD_PACKAGES = "${PN}"
+# add ipmi group
+GROUPADD_PARAM_${PN} = "ipmi"
+
SRC_URI += "git://github.com/openbmc/phosphor-net-ipmid"
SRCREV = "5e452093830644245b83a817b8dad2fdb36ea550"