[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
58/80: installer: Allow users to remove mount points during configuratio
From: |
John Darrington |
Subject: |
58/80: installer: Allow users to remove mount points during configuration. |
Date: |
Tue, 3 Jan 2017 15:49:45 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 2ee7267d162dff65cf32fc7987d8699254c89b9f
Author: John Darrington <address@hidden>
Date: Fri Dec 30 14:28:47 2016 +0100
installer: Allow users to remove mount points during configuration.
* gnu/system/installer/mount-point.scm (mount-point-page-key-handler):
Remove mount-point from alist if it is the null string.
---
gnu/system/installer/mount-point.scm | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/gnu/system/installer/mount-point.scm
b/gnu/system/installer/mount-point.scm
index 5ea0235..61649ac 100644
--- a/gnu/system/installer/mount-point.scm
+++ b/gnu/system/installer/mount-point.scm
@@ -63,9 +63,14 @@
(eq? ch #\nl))
(cond
((buttons-key-matches-symbol? nav ch 'continue)
- (set! mount-points (assoc-set! mount-points
- dev
- (form-get-value form
'mount-point)))
+ (let ((mp (form-get-value form 'mount-point)))
+ (if (equal? "" mp)
+ (set! mount-points
+ (assoc-remove! mount-points dev))
+
+ (set! mount-points (assoc-set! mount-points
+ dev mp))))
+
(set! page-stack (cdr page-stack))
((page-refresh (car page-stack)) (car page-stack)))
- 27/80: installer: Connect ethernet interfaces on selection., (continued)
- 27/80: installer: Connect ethernet interfaces on selection., John Darrington, 2017/01/03
- 28/80: installer: Let the kernel know about (possibly) changed partitions., John Darrington, 2017/01/03
- 49/80: installer: Wrap installer in (catch #t ...), John Darrington, 2017/01/03
- 09/80: installer: Use a record instead of a list to contain tasks., John Darrington, 2017/01/03
- 29/80: installer: Deal with partition tables which are (partially) corrupt., John Darrington, 2017/01/03
- 37/80: installer: Improve dependencies on the final task., John Darrington, 2017/01/03
- 31/80: gnu: Add service to start the installer in installation-os., John Darrington, 2017/01/03
- 36/80: installer: Remove ad-hoc completed predicate and use standard one., John Darrington, 2017/01/03
- 35/80: installer: Make minumum-store-size variable global., John Darrington, 2017/01/03
- 34/80: installer: Add path to mount/umount commands in installer service., John Darrington, 2017/01/03
- 58/80: installer: Allow users to remove mount points during configuration.,
John Darrington <=
- 11/80: installer: Change "interfaces" from a variable to a procedure., John Darrington, 2017/01/03
- 14/80: installer: Add alternate method of finding TZDIR., John Darrington, 2017/01/03
- 13/80: installer: Use call-with-temporary-output-file., John Darrington, 2017/01/03
- 22/80: installer: Return slurped lines in their correct order., John Darrington, 2017/01/03
- 16/80: installer: Use %default-subsitute-urls instead of our own variable., John Darrington, 2017/01/03
- 10/80: installer: Perform a task's dependencies prior to the task itself., John Darrington, 2017/01/03
- 18/80: installer: Add completion predicate for disk task., John Darrington, 2017/01/03
- 20/80: installer: Remove unused procedure., John Darrington, 2017/01/03
- 30/80: installer: Add a variable to represent the minimum recommended store size., John Darrington, 2017/01/03
- 44/80: installer: Add wireless-tools bin directory to PATH., John Darrington, 2017/01/03