From 26fc862a61adb231c57982ce687cac6931fd1e7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 9 Feb 2014 23:28:18 +0100 Subject: [PATCH] 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'. --- guix/build/linux-initrd.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm index 5bf20fa6df..80ce679496 100644 --- a/guix/build/linux-initrd.scm +++ b/guix/build/linux-initrd.scm @@ -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