diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-02-09 23:28:18 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-02-09 23:28:18 +0100 |
commit | 26fc862a61adb231c57982ce687cac6931fd1e7e (patch) | |
tree | 679204f1c555d28b931982c875626883ec4d0cfb /guix | |
parent | f9ec07a9859c5b305105ab38bff3f3db0dcb842d (diff) |
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'.
Diffstat (limited to 'guix')
-rw-r--r-- | guix/build/linux-initrd.scm | 1 |
1 files changed, 1 insertions, 0 deletions
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 |