services: rootless-podman: Use login shell.

This commit allows for having PATH set when changing the owner of
/sys/fs/group.

* gnu/services/containers.scm (crgroups-fs-owner): Use login shell.

Change-Id: I9510c637a5332325e05ca5ebc9dfd4de32685c50
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
Giacomo Leidi 2025-05-05 09:57:48 +02:00 committed by Maxim Cournoyer
parent d11b85b60e
commit 92058c15c8
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -140,7 +140,7 @@ available for each configured user."))
(rootless-podman-configuration-group-name config)) (rootless-podman-configuration-group-name config))
(program-file "cgroups2-fs-owner-entrypoint" (program-file "cgroups2-fs-owner-entrypoint"
#~(system* #~(system*
(string-append #+bash-minimal "/bin/bash") "-c" (string-append #+bash-minimal "/bin/bash") "-l" "-c"
(string-append "echo Setting /sys/fs/cgroup " (string-append "echo Setting /sys/fs/cgroup "
"group ownership to " #$group " && chown -v " "group ownership to " #$group " && chown -v "
"root:" #$group " /sys/fs/cgroup && " "root:" #$group " /sys/fs/cgroup && "