summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/shadow
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei.gherzan@huawei.com>2022-08-24 11:42:17 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-25 11:08:06 +0100
commit1f83192d0ea556e69a4c8147d6a406555a8335b7 (patch)
treeb5d2ef3b426df9f276b7ee2fd5936937652eec09 /meta/recipes-extended/shadow
parent99abf529df83cfc8d69e6fcad1e6a13562a83c02 (diff)
downloadpoky-1f83192d0ea556e69a4c8147d6a406555a8335b7.tar.gz
shadow: Enable subid support
shadow utils are used when creating users at image creation time. The useradd/usermod tools will only try to add a default configuration for subid files if they exist. (From OE-Core rev: 364a6f408c9feb5b9472ddabbc352d8b432bfffd) Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/shadow')
-rw-r--r--meta/recipes-extended/shadow/shadow.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc
index fbb1d395ff..b2f82e9ac7 100644
--- a/meta/recipes-extended/shadow/shadow.inc
+++ b/meta/recipes-extended/shadow/shadow.inc
@@ -147,6 +147,13 @@ do_install:append() {
147 # Handle link properly after rename, otherwise missing files would 147 # Handle link properly after rename, otherwise missing files would
148 # lead rpm failed dependencies. 148 # lead rpm failed dependencies.
149 ln -sf newgrp.${BPN} ${D}${bindir}/sg 149 ln -sf newgrp.${BPN} ${D}${bindir}/sg
150
151 # usermod requires the subuid/subgid files to be in place before being
152 # able to use the -v/-V flags otherwise it fails:
153 # usermod: /etc/subuid does not exist, you cannot use the flags -v or -V
154 install -d ${D}${sysconfdir}
155 touch ${D}${sysconfdir}/subuid
156 touch ${D}${sysconfdir}/subgid
150} 157}
151 158
152PACKAGES =+ "${PN}-base" 159PACKAGES =+ "${PN}-base"