[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46782: [PATCH] scripts: environment: Mount cwd before user specified
From: |
Josselin Poiret |
Subject: |
bug#46782: [PATCH] scripts: environment: Mount cwd before user specified --expose. |
Date: |
Mon, 13 Feb 2023 22:31:21 +0100 |
* guix/scripts/environment.scm (launch-environment/container): Put cwd mapping
at front of the file system mappings.
Fixes: #46782
---
guix/scripts/environment.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index 46435ae48e..8a1fc3c0ee 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -767,14 +767,14 @@ (define fhs-mappings
(append
(override-user-mappings
user home
- (append user-mappings
- ;; Share current working directory, unless asked not to.
+ (append ;; Share current working directory, unless asked not to.
(if map-cwd?
(list (file-system-mapping
(source cwd)
(target cwd)
(writable? #t)))
- '())))
+ '())
+ user-mappings))
;; Mappings for the union closure of all inputs.
(map (lambda (dir)
(file-system-mapping
base-commit: dd724cfad45d76b9dcc5b073876c995715c92a07
--
2.39.1