Skip to content

Commit

Permalink
sanlock: Use python3 and add sanlock user/group
Browse files Browse the repository at this point in the history
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Nov 22, 2019
1 parent 799925f commit 8de5a24
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ S = "${WORKDIR}/git"

DEPENDS = "libaio util-linux"

inherit distutils
inherit distutils3 useradd

do_configure[noexec] = "1"

Expand All @@ -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}"

0 comments on commit 8de5a24

Please sign in to comment.