Attempt fix v2.0.0 newuidmap permission denied
Recently, I believe an update or packaging problem has been causing
podman to throw errors like:
```
level=error msg="running `/usr/bin/newuidmap ...`: newuidmap: open of
uid_map failed: Permission denied\n"
```
This seems to have something to do with the shadow-utils package, which
owns this binary. I've examined the file attribuites and permissions
along with /etc/sub{uid,gid} contents. The only thing that seems to
resolve the issue is reinstalling shadow-utils. Attempt that fix here
and hope it clears up the problem (present in v2.0.0)
Signed-off-by: Chris Evich <chris_gitlab@icuc.me>
This commit is contained in:
@@ -57,6 +57,7 @@ RUN for rpm in ${EXCLUDE_PACKAGES}; do x+="--exclude=$rpm "; done && \
|
|||||||
$DNFCMD update && \
|
$DNFCMD update && \
|
||||||
$DNFCMD install $x $RUNNER_RPM_URL && \
|
$DNFCMD install $x $RUNNER_RPM_URL && \
|
||||||
$DNFCMD upgrade && \
|
$DNFCMD upgrade && \
|
||||||
|
$DNFCMD reinstall shadow-utils && \
|
||||||
if [[ "${DNFCMD}" == "${_DNFCMD}" ]]; then \
|
if [[ "${DNFCMD}" == "${_DNFCMD}" ]]; then \
|
||||||
dnf clean all && \
|
dnf clean all && \
|
||||||
rm -rf /var/cache/dnf; \
|
rm -rf /var/cache/dnf; \
|
||||||
|
|||||||
Reference in New Issue
Block a user