sanlock: Use python3 and add sanlock user/group

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2019-11-21 09:50:00 -08:00
parent 799925fd48
commit 8de5a24311
@@ -17,7 +17,7 @@ S = "${WORKDIR}/git"
DEPENDS = "libaio util-linux"
inherit distutils
inherit distutils3 useradd
do_configure[noexec] = "1"
@@ -32,3 +32,11 @@ do_install_prepend () {
oe_runmake -C src DESTDIR=${D} LIBDIR=${libdir} install
cd ${S}/python
}
SANLOCKGROUP ?= "sanlock"
SANLOCKUSER ?= "sanlock"
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "--system ${SANLOCKGROUP}"
USERADD_PARAM_${PN} = "--system -g ${SANLOCKGROUP} -G disk \
--home-dir /run/${SANLOCKUSER} --no-create-home \
--shell /sbin/nologin ${SANLOCKUSER}"