mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
99abf529df
commit
1f83192d0e
@@ -147,6 +147,13 @@ do_install:append() {
|
||||
# Handle link properly after rename, otherwise missing files would
|
||||
# lead rpm failed dependencies.
|
||||
ln -sf newgrp.${BPN} ${D}${bindir}/sg
|
||||
|
||||
# usermod requires the subuid/subgid files to be in place before being
|
||||
# able to use the -v/-V flags otherwise it fails:
|
||||
# usermod: /etc/subuid does not exist, you cannot use the flags -v or -V
|
||||
install -d ${D}${sysconfdir}
|
||||
touch ${D}${sysconfdir}/subuid
|
||||
touch ${D}${sysconfdir}/subgid
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-base"
|
||||
|
||||
Reference in New Issue
Block a user