Maximilian Schmidt
|
15aaf4677b
|
Add support for rootless podman with userns keep-id
Running `./kas-container` as rootless podman container fails with:
```
groupadd: Permission denied.
groupadd: cannot lock /etc/group; try again later.
useradd: Permission denied.
useradd: cannot lock /etc/passwd; try again later.
```
This patch add a check whether the correct USER_ID is already in use.
Co-authored-by: Nicolas Riebesel <nicolas.riebesel@gmx.com>
Signed-off-by: Maximilian Schmidt <maximilian@schmidt.so>
[Jan: fixed indention]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
|
2021-01-20 08:16:36 +01:00 |
|