infra/image/shcontainer: Ensure '/ect/shadow' is readable

The shadow file in a Fedora or CentOS Stream container is not readable
any more using Ubuntu 24.04.

An extra call to ensure that the shadow file is readable again has been
added to container_start.
This commit is contained in:
Thomas Woerner
2025-04-02 13:13:09 +02:00
parent e9435410b2
commit 4dc6192640

View File

@@ -47,6 +47,8 @@ container_start() {
log info "= Starting ${name} ="
podman start "${name}"
# Ensure /etc/shadow is readable
podman exec "${name}" bash -c "chmod u+r /etc/shadow"
echo
}