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

View file

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