~ruther/guix-local

26fc862a61adb231c57982ce687cac6931fd1e7e — Ludovic Courtès 12 years ago f9ec07a
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'.
1 files changed, 1 insertions(+), 0 deletions(-)

M guix/build/linux-initrd.scm
M guix/build/linux-initrd.scm => guix/build/linux-initrd.scm +1 -0
@@ 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