Skip to content
Snippets Groups Projects
Commit 26fc862a authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

gnu: linux-initrd: When booting, chdir to the new root before calling 'chroot'.

* guix/build/linux-initrd.scm (boot-system): Add 'chdir' call right
  before 'chroot'.
parent f9ec07a9
No related branches found
No related tags found
No related merge requests found
...@@ -318,6 +318,7 @@ (define MS_RDONLY 1) ...@@ -318,6 +318,7 @@ (define MS_RDONLY 1)
(if to-load (if to-load
(begin (begin
(format #t "loading '~a'...\n" to-load) (format #t "loading '~a'...\n" to-load)
(chdir "/root")
(chroot "/root") (chroot "/root")
;; TODO: Remove /lib, /share, and /loader.go. ;; TODO: Remove /lib, /share, and /loader.go.
(catch #t (catch #t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment