mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
system: 'operating-system-root-file-system' raises upon missing root.
* gnu/system.scm (operating-system-root-file-system): Raise when 'find' returns #f.
This commit is contained in:
parent
9e12da319b
commit
d7e9e0bbc9
1 changed files with 7 additions and 3 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue