diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-11-21 09:50:00 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-11-21 17:52:26 -0800 |
commit | 8de5a24311ae8b3b5042996b4271c4f713f15082 (patch) | |
tree | 1ae7a58e02f26198697c69cdd7bee823ca74fe60 | |
parent | 799925fd48cf0156caa85ef3b7f38da792fb5337 (diff) | |
download | meta-openembedded-contrib-8de5a24311ae8b3b5042996b4271c4f713f15082.tar.gz |
sanlock: Use python3 and add sanlock user/group
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb b/meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb index 9f7ce9c5708..8e411e49694 100644 --- a/meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb +++ b/meta-oe/recipes-extended/sanlock/sanlock_3.8.0.bb @@ -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}" |