summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-05-06 11:29:19 +0200
committerLudovic Courtès <ludo@gnu.org>2025-05-06 12:22:34 +0200
commitedc799dabfb059735f1a3084384925fe573d9de1 (patch)
tree83c4930df0113fd41948da0fe335cc3ac6464382 /tests
parentdb336991b517f9ddc0d896b0f087eb3b88636804 (diff)
environment, home: Make /tmp writable.
Fixes <https://issues.guix.gnu.org/78272>. Fixes a bug caused by commit ce363c1dc7bd63a74dcf7788d340819f6d5db89f, which inadvertently made /tmp read-only as well. * guix/scripts/environment.scm (launch-environment/container)[tmpfs]: New variable. Add it to ‘file-systems’. * guix/scripts/home.scm (spawn-home-container): Add /tmp file system to #:mounts. * tests/guix-environment-container.sh: Add test. Reported-by: Tomas Volf <~@wolfsden.cz> Change-Id: I5cb449e6d0c213d4b5866cbcbd14990437a7d4c5
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-environment-container.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/guix-environment-container.sh b/tests/guix-environment-container.sh
index d6cb382de92..d0f19c83725 100644
--- a/tests/guix-environment-container.sh
+++ b/tests/guix-environment-container.sh
@@ -195,6 +195,11 @@ guix environment --bootstrap --container --ad-hoc guile-bootstrap \
--writable-root \
-- guile -c '(mkdir "/whatever")'
+# /tmp itself is always writable.
+guix environment --bootstrap --container --ad-hoc guile-bootstrap \
+ -- guile -c '(mkdir "/tmp/foo")'
+
+
# Check the exit code.
abnormal_exit_code="