summaryrefslogtreecommitdiff
path: root/guix/scripts/home.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2023-08-16 19:45:28 +0200
committerLudovic Courtès <ludo@gnu.org>2023-08-16 22:09:38 +0200
commitbb7369ba8a4898567804fb7cef2ed97d77264d82 (patch)
treeae775d89c67f159fed8c0af973fb84027f70b100 /guix/scripts/home.scm
parent45ca59da5e5265f56607a4ca0b3a18587638394d (diff)
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.
Diffstat (limited to 'guix/scripts/home.scm')
-rw-r--r--guix/scripts/home.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
index fbd5689be8..e0800bc062 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)