add trailing newline to subgid due to shadow-utils 4.19.0 regression

Fedora 44 come with shadow-utils 4.19.0, This is a POSIX compliance fix - text files need end with a newline.
1. https://github.com/containers/podman-machine-os/issues/226
2. https://github.com/shadow-maint/shadow/issues/1581

Signed-off-by: Tim Zhou <tizhou@redhat.com>
This commit is contained in:
Tim Zhou
2026-03-11 17:22:06 -04:00
parent 2ea88f0573
commit 0904bab01e

View File

@@ -283,7 +283,7 @@ pids_limit=0
if uid >= subUID && uid < (subUID+subUIDs) {
subUID = uid + 1
}
etcSubUID := fmt.Sprintf(`%s:%d:%d`, usrName, subUID, subUIDs)
etcSubUID := fmt.Sprintf("%s:%d:%d\n", usrName, subUID, subUIDs)
// Set containers.conf up for core user to use networks
// by default