guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

54/197: installer: Change the order of the filesystem task conditions.


From: Danny Milosavljevic
Subject: 54/197: installer: Change the order of the filesystem task conditions.
Date: Mon, 3 Jul 2017 20:36:59 -0400 (EDT)

dannym pushed a commit to branch wip-installer-2
in repository guix.

commit 758debfaef1d6c2547fca5482a848f43d4b4d01f
Author: John Darrington <address@hidden>
Date:   Fri Dec 30 20:55:50 2016 +0100

    installer: Change the order of the filesystem task conditions.
    
    * gnu/system/installer/filesystems.scm (filesystem-task-incomplete-reason): 
Make the
    exitance of the root, the first condition.
---
 gnu/system/installer/filesystems.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/system/installer/filesystems.scm 
b/gnu/system/installer/filesystems.scm
index 4297ef3..5040eca 100644
--- a/gnu/system/installer/filesystems.scm
+++ b/gnu/system/installer/filesystems.scm
@@ -42,15 +42,16 @@
 (define (filesystem-task-incomplete-reason)
   "Returns #f if the task is complete.  Otherwise a string explaining why not."
   (or
+   (and (not (find-mount-device "/" mount-points))
+        (N_ "You must specify a mount point for the root (/)."))
+
+
    (and (< (size-of-partition (find-mount-device "/gnu" mount-points))
            minimum-store-size)
         (format #f
                 (N_ "The filesystem for /gnu requires at least ~aGB.")
                 (/ minimum-store-size 1000)))
 
-   (and (not (find-mount-device "/" mount-points))
-        (N_ "You must specify a mount point for the root (/)."))
-
    (let loop ((ll mount-points)
               (ac '()))
      (match ll



reply via email to

[Prev in Thread] Current Thread [Next in Thread]