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
1 changed files with 1 additions and 0 deletions
|
@ -318,6 +318,7 @@ (define MS_RDONLY 1)
|
|||
(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 a new issue