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'.
This commit is contained in:
parent
f9ec07a985
commit
26fc862a61
|
@ -318,6 +318,7 @@ to it are lost."
|
|||
(if to-load
|
||||
(begin
|
||||
(format #t "loading '~a'...\n" to-load)
|
||||
(chdir "/root")
|
||||
(chroot "/root")
|
||||
;; TODO: Remove /lib, /share, and /loader.go.
|
||||
(catch #t
|
||||
|
|
Loading…
Reference in New Issue