]> code.ossystems Code Review - openembedded-core.git/commitdiff
shadow: generate alternative links for chfn and chsh
authorRoss Burton <ross@burtonini.com>
Mon, 5 Jul 2021 17:04:17 +0000 (18:04 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Jul 2021 10:38:57 +0000 (11:38 +0100)
These can be provided by util-linux, so add alternative links for them.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/shadow/shadow.inc

index 2278541f6b1bdb1ca3f55b88d4f3ca3adbe80829..2cbdfbc1cf12c9f8f17874756b1fb3747a942ef7 100644 (file)
@@ -173,6 +173,8 @@ inherit update-alternatives
 ALTERNATIVE_PRIORITY = "200"
 
 ALTERNATIVE_${PN} = "passwd chfn chsh chpasswd vipw vigr nologin"
+ALTERNATIVE_LINK_NAME[chfn] = "${bindir}/chfn"
+ALTERNATIVE_LINK_NAME[chsh] = "${bindir}/chsh"
 ALTERNATIVE_LINK_NAME[chpasswd] = "${sbindir}/chpasswd"
 ALTERNATIVE_LINK_NAME[vipw] = "${base_sbindir}/vipw"
 ALTERNATIVE_LINK_NAME[vigr] = "${base_sbindir}/vigr"