[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/18: installer: Keep PATH inside the install container.
From: |
guix-commits |
Subject: |
05/18: installer: Keep PATH inside the install container. |
Date: |
Mon, 17 Jan 2022 05:04:52 -0500 (EST) |
mothacehe pushed a commit to branch wip-harden-installer
in repository guix.
commit 946420276f5374968030fa80ea4d69e57b8514f4
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Sat Jan 15 14:49:58 2022 +0100
installer: Keep PATH inside the install container.
* gnu/installer/final.scm (install-system): Set PATH inside the
container.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
---
gnu/installer/final.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/installer/final.scm b/gnu/installer/final.scm
index fbfac1f692..7d5eca4c7e 100644
--- a/gnu/installer/final.scm
+++ b/gnu/installer/final.scm
@@ -169,7 +169,8 @@ or #f. Return #t on success and #f on failure."
(database-dir "/var/guix/db")
(database-file (string-append database-dir "/db.sqlite"))
(saved-database (string-append database-dir "/db.save"))
- (ret #f))
+ (ret #f)
+ (path (getenv "PATH")))
(mkdir-p (%installer-target-dir))
;; We want to initialize user passwords but we don't want to store them in
@@ -208,6 +209,8 @@ or #f. Return #t on success and #f on failure."
(setvbuf (current-output-port) 'none)
(setvbuf (current-error-port) 'none)
+ (setenv "PATH" path)
+
;; If there are any connected clients, assume that we are running
;; installation tests. In that case, dump the standard and error
;; outputs to syslog.
- branch wip-harden-installer updated (84d0d8ad3d -> 1e2f0cca1a), guix-commits, 2022/01/17
- 01/18: installer: Use define instead of let at top-level., guix-commits, 2022/01/17
- 07/18: installer: Capture external commands output., guix-commits, 2022/01/17
- 05/18: installer: Keep PATH inside the install container.,
guix-commits <=
- 18/18: installer: Make dump archive creation optional and selective., guix-commits, 2022/01/17
- 06/18: installer: Remove specific logging code., guix-commits, 2022/01/17
- 03/18: installer: Use new installer-log-line everywhere., guix-commits, 2022/01/17
- 04/18: installer: Un-export syslog syntax., guix-commits, 2022/01/17
- 08/18: installer: Add installer-specific run command process., guix-commits, 2022/01/17
- 09/18: installer: Use run-command-in-installer in (gnu installer parted)., guix-commits, 2022/01/17
- 10/18: installer: Raise condition when mklabel fails., guix-commits, 2022/01/17
- 14/18: installer: Use named prompt to abort or break installer steps., guix-commits, 2022/01/17
- 15/18: installer: Add error page when running external commands., guix-commits, 2022/01/17
- 17/18: installer: Turn passwords into opaque records., guix-commits, 2022/01/17