diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2017-01-24 16:07:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-22 11:35:20 +0000 |
commit | 6a2e06e5d4b1d3288de4542a0929426b43fbab12 (patch) | |
tree | b3aedc5a8e77f8d895f2d3e6cdc7f39c6bb5ddda /meta/recipes-extended | |
parent | f808bce13f27e1013b283117621a192c83571919 (diff) | |
download | poky-6a2e06e5d4b1d3288de4542a0929426b43fbab12.tar.gz |
util-linux,shadow: Make 'nologin' alternative command
Both shadow and util-linux packages provides 'nologin' binary in ${base_sbindir}
and ${sbindir} respectively, this leads to conflict when 'usrmerge' feature is
enabled, where ${sbindir} == ${base_sbindir}. Hance, handle this to alternative
system to resolve the conflict.
(From OE-Core rev: 07d6d0fb4dc689008bb0022d7d2ecc890c9159e5)
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 25283a9741..70ff68ee87 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -172,10 +172,11 @@ inherit update-alternatives | |||
172 | 172 | ||
173 | ALTERNATIVE_PRIORITY = "200" | 173 | ALTERNATIVE_PRIORITY = "200" |
174 | 174 | ||
175 | ALTERNATIVE_${PN} = "passwd chfn chsh chpasswd vipw vigr" | 175 | ALTERNATIVE_${PN} = "passwd chfn chsh chpasswd vipw vigr nologin" |
176 | ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd" | 176 | ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd" |
177 | ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" | 177 | ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw" |
178 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" | 178 | ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr" |
179 | ALTERNATIVE_LINK_NAME[nologin] = "${base_sbindir}/nologin" | ||
179 | 180 | ||
180 | ALTERNATIVE_${PN}-base = "newgrp groups login su" | 181 | ALTERNATIVE_${PN}-base = "newgrp groups login su" |
181 | ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login" | 182 | ALTERNATIVE_LINK_NAME[login] = "${base_bindir}/login" |