[bug#76081,1/4] services: rootless-podman: Use login shell.

Message ID 89778533f32ad1388f03414e884fff10f74ef379.1738792951.git.goodoldpaul@autistici.org
State New
Headers
Series [bug#76081,1/4] services: rootless-podman: Use login shell. |

Commit Message

Giacomo Leidi Feb. 5, 2025, 10:02 p.m. UTC
  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
---
 gnu/services/containers.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 5a897c5c95a81278b044c18d962d3bd83131ba06
  

Patch

diff --git a/gnu/services/containers.scm b/gnu/services/containers.scm
index 19d35ccbcb6..dc66ac4f967 100644
--- a/gnu/services/containers.scm
+++ b/gnu/services/containers.scm
@@ -140,7 +140,7 @@  (define (cgroups-fs-owner-entrypoint config)
     (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 && "