mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
installer: Use system-wide guix for system init.
* gnu/installer.scm (installer-program): Remove dependency on the guix package for the PATH. * gnu/installer/final.scm (install-system): Set PATH inside container to /run/current-system/profile/bin/. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
ad55ccf9b1
commit
4943ac86e4
2 changed files with 2 additions and 4 deletions
|
@ -335,7 +335,6 @@ selected keymap."
|
||||||
ntfs-3g ;mkfs.ntfs
|
ntfs-3g ;mkfs.ntfs
|
||||||
xfsprogs ;mkfs.xfs
|
xfsprogs ;mkfs.xfs
|
||||||
kbd ;chvt
|
kbd ;chvt
|
||||||
guix ;guix system init call
|
|
||||||
util-linux ;mkwap
|
util-linux ;mkwap
|
||||||
nano
|
nano
|
||||||
shadow
|
shadow
|
||||||
|
|
|
@ -170,8 +170,7 @@ or #f. Return #t on success and #f on failure."
|
||||||
(database-dir "/var/guix/db")
|
(database-dir "/var/guix/db")
|
||||||
(database-file (string-append database-dir "/db.sqlite"))
|
(database-file (string-append database-dir "/db.sqlite"))
|
||||||
(saved-database (string-append database-dir "/db.save"))
|
(saved-database (string-append database-dir "/db.save"))
|
||||||
(ret #f)
|
(ret #f))
|
||||||
(path (getenv "PATH")))
|
|
||||||
(mkdir-p (%installer-target-dir))
|
(mkdir-p (%installer-target-dir))
|
||||||
|
|
||||||
;; We want to initialize user passwords but we don't want to store them in
|
;; We want to initialize user passwords but we don't want to store them in
|
||||||
|
@ -210,7 +209,7 @@ or #f. Return #t on success and #f on failure."
|
||||||
(setvbuf (current-output-port) 'none)
|
(setvbuf (current-output-port) 'none)
|
||||||
(setvbuf (current-error-port) 'none)
|
(setvbuf (current-error-port) 'none)
|
||||||
|
|
||||||
(setenv "PATH" path)
|
(setenv "PATH" "/run/current-system/profile/bin/")
|
||||||
|
|
||||||
(set! ret (run-command install-command)))
|
(set! ret (run-command install-command)))
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue