~ruther/guix-local

92058c15c807ae67a2062938466db0a4c673d165 — Giacomo Leidi 1 year, 3 months ago d11b85b
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>
1 files changed, 1 insertions(+), 1 deletions(-)

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