diff --git a/gnu/system.scm b/gnu/system.scm index e7f85e4358..de5f25a35d 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -1032,9 +1032,13 @@ (define* (operating-system-profile os) (define (operating-system-root-file-system os) "Return the root file system of OS." - (find (lambda (fs) - (string=? "/" (file-system-mount-point fs))) - (operating-system-file-systems os))) + (or (find (lambda (fs) + (string=? "/" (file-system-mount-point fs))) + (operating-system-file-systems os)) + (raise (condition + (&message (message "missing root file system")) + (&error-location + (location (operating-system-location os))))))) (define (operating-system-initrd-file os) "Return a gexp denoting the initrd file of OS."