gnu: linux-initrd: Start a REPL when the root could not be mounted. * guix/build/linux-initrd.scm (boot-system): Catch errors when mounting ROOT and call 'start-repl' upon error.
1 files changed, 7 insertions(+), 1 deletions(-) M guix/build/linux-initrd.scm
M guix/build/linux-initrd.scm => guix/build/linux-initrd.scm +7 -1
@@ 217,7 217,13 @@ the new root." (unless (file-exists? "/root") (mkdir "/root")) (if root (mount root "/root" "ext3") (catch #t (lambda () (mount root "/root" "ext3")) (lambda args (format (current-error-port) "exception while mounting '~a': ~s~%" root args) (start-repl))) (mount "none" "/root" "tmpfs")) (mount-essential-file-systems #:root "/root")