~ruther/guix-local

bb7369ba8a4898567804fb7cef2ed97d77264d82 — Ludovic Courtès 2 years ago 45ca59d
guix home: Create /tmp in container if needed.

Previously 'guix home container' would create a container without /tmp,
which would prevent 'least-authority-wrapper' programs from starting,
for example.

* guix/scripts/home.scm (spawn-home-container): Create /tmp if it
doesn't exist yet.
1 files changed, 4 insertions(+), 0 deletions(-)

M guix/scripts/home.scm
M guix/scripts/home.scm => guix/scripts/home.scm +4 -0
@@ 330,6 330,10 @@ immediately.  Return the exit status of the process in the container."
                 (display "127.0.0.1 localhost\n" port)
                 (chmod port #o444))))

           ;; Create /tmp; bits of code expect it, such as
           ;; 'least-authority-wrapper'.
           (mkdir-p "/tmp")

           ;; Set PATH for things that the activation script might expect, such
           ;; as "env".
           (load-profile #$system-profile)