mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
environment, home: Make /tmp writable.
Fixes <https://issues.guix.gnu.org/78272>.
Fixes a bug caused by commit ce363c1dc7,
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
This commit is contained in:
@@ -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="
|
||||
|
||||
Reference in New Issue
Block a user