From bb7369ba8a4898567804fb7cef2ed97d77264d82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 16 Aug 2023 19:45:28 +0200 Subject: [PATCH] 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. --- guix/scripts/home.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm index fbd5689be82..e0800bc0620 100644 --- a/guix/scripts/home.scm +++ b/guix/scripts/home.scm @@ -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)