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:
Ludovic Courtès 2014-02-09 23:28:18 +01:00
parent f9ec07a985
commit 26fc862a61
1 changed files with 1 additions and 0 deletions

View File

@ -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