diff options
| author | Andrei Gherzan <andrei.gherzan@huawei.com> | 2022-08-25 18:30:39 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-03 13:09:49 +0100 |
| commit | 5ec20bf952a9f3ca4c6d9e00a4c6d584ac4726bd (patch) | |
| tree | ebb80fd9f4f439172feaa839418ddf28aa213ae2 /meta | |
| parent | b74a9df4624b6b5be35a1a95a5a2f6f9d12a6c63 (diff) | |
| download | poky-5ec20bf952a9f3ca4c6d9e00a4c6d584ac4726bd.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: 5cdc9c1809ef169b8af7ce3085f316d1e68eb7ec)
Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index f5fdf436f7..b3ae2b4874 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
| @@ -149,6 +149,13 @@ do_install:append() { | |||
| 149 | # Handle link properly after rename, otherwise missing files would | 149 | # Handle link properly after rename, otherwise missing files would |
| 150 | # lead rpm failed dependencies. | 150 | # lead rpm failed dependencies. |
| 151 | ln -sf newgrp.${BPN} ${D}${bindir}/sg | 151 | ln -sf newgrp.${BPN} ${D}${bindir}/sg |
| 152 | |||
| 153 | # usermod requires the subuid/subgid files to be in place before being | ||
| 154 | # able to use the -v/-V flags otherwise it fails: | ||
| 155 | # usermod: /etc/subuid does not exist, you cannot use the flags -v or -V | ||
| 156 | install -d ${D}${sysconfdir} | ||
| 157 | touch ${D}${sysconfdir}/subuid | ||
| 158 | touch ${D}${sysconfdir}/subgid | ||
| 152 | } | 159 | } |
| 153 | 160 | ||
| 154 | PACKAGES =+ "${PN}-base" | 161 | PACKAGES =+ "${PN}-base" |
