guix-commits
[Top][All Lists]
Advanced

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

108/197: installer: Do not add file systems which are invalid.


From: Danny Milosavljevic
Subject: 108/197: installer: Do not add file systems which are invalid.
Date: Mon, 3 Jul 2017 20:37:09 -0400 (EDT)

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

commit 208799438ff360353d7e70296159809f1ce2fdeb
Author: John Darrington <address@hidden>
Date:   Mon Jan 16 21:51:37 2017 +0100

    installer: Do not add file systems which are invalid.
    
    * gnu/system/installer/mount-point.scm (mount-point-page-key-handler): Do
    not add invalid filesystems to the list of mount points.
---
 gnu/system/installer/mount-point.scm | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/gnu/system/installer/mount-point.scm 
b/gnu/system/installer/mount-point.scm
index 3abf675..daebc71 100644
--- a/gnu/system/installer/mount-point.scm
+++ b/gnu/system/installer/mount-point.scm
@@ -54,12 +54,14 @@
 
     (cond
      ((buttons-key-matches-symbol? nav ch 'continue)
-      (set! mount-points
-            (assoc-set! mount-points dev
-                        (make-file-system-spec
-                         (form-get-value form 'mount-point)
-                         (form-get-value form 'label)
-                         (form-get-value form 'fs-type))))
+      (let ((fss
+             (make-file-system-spec
+              (form-get-value form 'mount-point)
+              (form-get-value form 'label)
+              (form-get-value form 'fs-type))))
+        (when fss
+              (set! mount-points
+                    (assoc-set! mount-points dev fss))))
       (page-leave))
 
      ((buttons-key-matches-symbol? nav ch 'cancel)



reply via email to

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