~ruther/guix-local

76bacc826422073a9a6546fb5383c9a0cd8e5dae — Ludovic Courtès 11 years ago 2d2a2ba
linux-boot: Error out when 'pre-mount' returns #f.

* gnu/build/linux-boot.scm (boot-system): Call 'error' when PRE-MOUNT
  returns #f.
1 files changed, 3 insertions(+), 2 deletions(-)

M gnu/build/linux-boot.scm
M gnu/build/linux-boot.scm => gnu/build/linux-boot.scm +3 -2
@@ 400,8 400,9 @@ to it are lost."

       (when (procedure? pre-mount)
         ;; Do whatever actions are needed before mounting--e.g., installing
         ;; device mappings.
         (pre-mount))
         ;; device mappings.  Error out when the return value is false.
         (unless (pre-mount)
           (error "pre-mount actions failed")))

       ;; Mount the specified file systems.
       (for-each mount-file-system